PDA

View Full Version : JSON TextWrangler tip


phppete
09-08-2006, 11:41 AM
For those using TextWrangler and writing JSON you will notice the function names aren't picked up because of the notation style, a great workaround for this is to use the markers. Click M > Find and Mark All ..

Search for:

([*.]+):(function)

Replace:

\1

which will now display all function names in the marker drop down menu. I had been adding them manually until I realised you can use regexp to do it.

phppete
09-11-2006, 04:15 AM
Actually its:

([\w]+):(function())

:confuz: