bodmas blog » Blog Archive » Textwrangler: remove blank lines :: Keith Peter Burnett’s blog about Maths teaching and ILT: "
Textwrangler: remove blank lines
To remove blank lines from a text file in Textwrangler, you have to run search and replace, tick the ‘use Grep’ option and then search on the pattern ^\r. Replace with nowt and the effect is magic. A boon to the ‘everything in one big text file’ advocates. The pattern < /?[^>]> can be used to [...]
To remove blank lines from a text file in Textwrangler, you have to run search and replace, tick the ‘use Grep’ option and then search on the pattern ^\r. Replace with nowt and the effect is magic. A boon to the ‘everything in one big text file’ advocates.
The pattern < /?[^>]> can be used to remove all the HTML tags from a file (see below). I’d advise replacing the tags with a single space. The pattern should not have a space after the first angle bracket – WordPress and Textile are just playing up with the formatting.
--
bodmas.org, 19 March 2006"
Tuesday, February 27, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment