Jump to content

Recommended Posts

Posted

Hi,

 

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?

 

Have about 6 .js files that are in this condition. :blink: Right now, doing it manually, but darnit I'm getting tired!

 

thanks,

!!blue

Posted

You can try Command > Apply source formatting

 

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....

 

Dennis

Posted (edited)

 

Those didn't work cuz some of the items under the Command menu are greyed out but I did find something that worked....

 

in the search and replace I searched for the semi-color ";" and replaced it with "; Ctrl+Enter".

 

In other words, in the replace box I literally typed the semi-colon then hit Ctrl + Enter and finally Replace All

 

problem-solved! hope this helps someone out there!

 

later,

!!blue

Edited by !!blue

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...