!!blue Posted October 10, 2003 Posted October 10, 2003 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. Right now, doing it manually, but darnit I'm getting tired! thanks, !!blue Quote
Dennis Posted October 10, 2003 Posted October 10, 2003 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 Quote
!!blue Posted October 10, 2003 Author Posted October 10, 2003 (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 October 10, 2003 by !!blue Quote
vendlus Posted October 10, 2003 Posted October 10, 2003 wow, I'm really impressed that actually works. Quote
!!blue Posted October 11, 2003 Author Posted October 11, 2003 ....and let me tell you, it saved me a lot of headache! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.