Graham Nelson Numbering enumerations - automating with BBEdit?
Sep 15, 2009; 03:51
Graham Nelson
Numbering enumerations - automating with BBEdit?
BBEdit is extensible in so many ways that I suspect this is possible, but have no idea how to go about it.
What I'm looking for is a menu option which work work rather like the Sort Lines option - you select a set of lines in BBEdit, then run it, and it reformats the lines in place.
(but probably much longer) where what was intended to be an enumerated set of definitions has fallen out of sequence and with gaps in the numbering; the transformed result would be
- that is, all that changes are the numbers, which renumber contiguously upwards from (let's say) the lowest number visible. Of course, it wouldn't work just for C syntax like this, but for anything where there's a number on each line.
It would be easy to write a Perl script to read lines like this from standard input and print them back in corrected form. But is it possible for BBEdit to accommodate a feature which grabs the selection, runs them through (let's say) a Perl script like this, and replaces them with the output result? This would be very cool, and BBEdit has such a lot of integration with system-level tools that it seems possible that it might be doable.
(By the way, is the next version going to be BBEdit 10, or BBEdit X? It's eagerly anticipated by this user, at any rate. Better and more user-definable syntax-colouring with language grammars, please, which is just about the only thing TextMate does better than BB...)
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email "support@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~-
Sep 15
Charlie Garrison Re: Numbering enumerations - automating with BBEdit?
Sep 15, 2009; 07:08
Charlie Garrison
Re: Numbering enumerations - automating with BBEdit?
Sep 15
Bill Rowe Re: Numbering enumerations - automating with BBEdit?
Sep 15, 2009; 18:03
Bill Rowe
Re: Numbering enumerations - automating with BBEdit?
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!