Categories
Adobe CSS Dreamweaver Fix HTML HTML5 PHP Website Design Wordpress Web Design

Dreamweaver FIX Removing Extra Line Breaks in CSS HTML PHP

Isn’t it insanely annoying some times when you open a CSS File or a HTML File only to find Dreamweaver has added loads of blank lines, if your CSS is more white space than code then running this script will be very helpful.

I’ve used a tonne of CSS Compressors to fix Dreamweavers fail of blank lines in the past, but most of them do not support CSS 3, and the ones that do – seemingly do not support the transition effect.  This however, works fine with PHP, HTML and CSS (self tested).  So no more tears for those added line breaks in your PHP or CSS, just run this fix!

Open the file in Adobe Dreamweaver, press CTRL+F to load the Find & Replace dialog box (or Edit > Find and Replace).

Do the search on the source code view.

Check the box “Use regular expression” and un-check any other boxes.
Find: [\r\n]{2,}
Replace: \n
The hit “replace all”

It may take a while so fit back and wait whilst your CSS / HTML or PHP Document is flushed of all those annoying line breaks!

NOTE:  PLEASE ENSURE YOU BACK UP OR MAKE  A DUPLICATE OF ALL FILES BEFORE “CLEANING”.

> I will not be help responsible for any lost work caused by this quick fix!

Categories
Bugs Dreamweaver Errors HTML PHP Website Design Wordpress Wordpress Plugins Wordpress Themes

WordPress: The plugin generated x characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin. *Fix*

I keep getting a problem when using Dreamweaver Find and Replace – whilst modifying certain PHP files, but mainly with wordpress.

It has become apparent, that the crappy software decides to some how add spaces all over the shop like some random crack head, So if  you go to your PHP / WordPress Plugin / WordPress Theme and get this error:

The plugin generated 2 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

The not to worry! Chances are you’ve got some white space / spaces after the closing php tag!

For those who have been tinkering and are not certain what a closing PHP tag is then this is it:

?php>

Anyway, I hope that fixed your problem 🙂