I have been playing around with creating a language module for a test language called ATLAS and having problems getting comments displayed correctly. Apologies if this has been covered before; I can’t search the archive at the moment.
I seem to be having three problems: 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. 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 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 $ I’ve read the relevant appendix in the manual but a few examples would help me. Thanks, Steve -- ------------------------------------------------------------------ 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]>
