On 9-sep-2006, at 4:17, Seth Dillingham wrote:
On 9/9/2006, Graham Nelson said:
The following example may be illustrative. I work on a program
written in
about 60,000 lines of CWEB, a "|iterate programming" language
devised by
Knuth in the early 1980s. It's essentially C with more elaborate
commentary, signalled by escape characters. Ideally I'd like to
specify
the language by saying "there are two modes, C and TeX, and this
is the
marker to switch from one to the other", but that's a lot to ask. At
least, though, I'd like to able to say "don't colour paragraphs of
text
between these markers, since they're comment", but there seems no
way to
do this. (Remember, one gets only one block comment syntax.)
Actually... strings, comments and functions can all be specified with
regular expressions now, in the codeless language modules.
So, you can delimit with whatever you want. :-)
Isn't this stuff documented yet? ;-)
OTOH, there are many more combinations of languages, where one would
like to combine other modules in a new combined module. I've used
noweb to write AppleScript, with a small amount of bash in the same
file. That is an exotic combination, but html+php is a fairly common
situation. Having to write a completely new module, when the modules
for the parts are already there is not a fun task. (For cweb and
noweb, one part would be the TeX module, the other the programming
language in question, with a small amount of code to delimit the blocks.
I've suggested something like this to BareBones some time ago. It
should still be in the requests database ;-)
Maarten
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>