On Mar 10, 2007, at 4:23 PM, Steve Hodgson wrote:

1. The module I created is still present in ~/Library/ Application Support/BBEdit/Language Modules/ but the ATLAS entry is no longer listed in the Language preferences or in the popup at the bottom of the BBEdit window. It was in both places before – what can cause it to be dropped from the list.

Without seeing the module, it is just a guess. Perhaps you've mad a change to such that the file is no longer a valid plist.

plutil <file>

can be used to syntax check the plist.

2. Is there anyway to have languages automatically recognised when loading a file, say be matching a regex at the start of the file? The files I am using do not have extensions

Language guessing is only available to compiled language modules.

3. Comments start with a ‘C’ as the first character on a line i.e. ^C then any characters until a ‘$’ character i.e. \$ but may span multiple lines and include newline characters. Are there any examples of strings to match this type of comment? In other editors (that allowed dot to match newlines) I used ^C.*?\$.

For some examples:

C This is a comment $

C This also
C a comment $

C This is also
  valid as a comment $

This is really a regex question in its own right, since the solution is the same whether or not you are writing a codeless language module.

Choose "Grep Reference" from the "Help" menu, then click on "Advanced Grep Topics" and read about pattern modifiers.

Something like this ought to solve the problem:

(?s)^C.*?\$

Jim


--
------------------------------------------------------------------
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]>

Reply via email to