Line Breaks

liunx

Guest
<!--fonto:verdana--><span style="font-family:verdana"><!--/fonto--><!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo--><!--coloro:#1a457a--><span style="color:#1a457a"><!--/coloro--><br />Hi,<br /><br />I'm going through some javascript code, but the thing is it's all in one long line and I want to enter some comments. How can I have Dreamweaver or even Notepad search & replace all the semi-colons with semi-colon + line break? <br /><br />Have about 6 .js files that are in this condition. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> Right now, doing it manually, but darnit I'm getting tired!<br /><br />thanks,<br />!!blue<br /><!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc--><!--fontc--></span><!--/fontc--><!--content-->
You can try Command > Apply source formatting<br /><br />If this is not what you are looking for, then do a manual search and replace by going to Windows>Results>Search and click in the small green arrow to bring up the search and replace dialog....<br /><br />Dennis<!--content-->
<!--fonto:verdana--><span style="font-family:verdana"><!--/fonto--><!--coloro:#1a457a--><span style="color:#1a457a"><!--/coloro--><!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo--><br /><br />Those didn't work cuz some of the items under the Command menu are greyed out but I did find something that worked....<br /><br />in the search and replace I searched for the semi-color ";" and replaced it with "; Ctrl+Enter".<br /><br />In other words, in the replace box I literally typed the semi-colon then hit Ctrl + Enter and finally Replace All<br /><br />problem-solved! hope this helps someone out there!<br /><br />later,<br />!!blue<br /><!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc--><!--fontc--></span><!--/fontc--><!--content-->
wow, I'm really impressed that actually works.<!--content-->
<!--fonto:verdana--><span style="font-family:verdana"><!--/fonto--><!--coloro:#1a457a--><span style="color:#1a457a"><!--/coloro--><!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo--><br /><br />....and let me tell you, it saved me a lot of headache! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> <br /><br /><!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc--><!--fontc--></span><!--/fontc--><!--content-->
 
Back
Top