[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[StrongED] syntax of a Modewhen file



I'd like to get the Obey mode to recognize a Convtext scriptfile, and 
presume I need to change Userprefs.Modes.Obey.Modewhen accordingly.

Convtext files are plain text (&fff) but they always begin with these 
seven characters:   SCRIPT:nameofscript

This is the default Obey.Modewhen (ignore the indents here):

     Rules Include
     ! f7b, **
     ! fd6, **
     ! fd7, **
     ! fea, **
     ! feb, **
     ! ffe, **
     End

How would I add a line to make it respond to a Convtext file?  I read 
StrongEd's help (partic the "Rules Include" section) but am confused.

Alternatively, I could set up a new mode for Convtext, but I would 
still need to know the syntax for its Modewhen.
I gather that StrongEd has a way of "sniffing" the beginning of a file 
when filetype by itself isn't enough, but I can't get it to work.

The thing in common with Obey files is the use of "|" to mark a 
comment, which alone would make the Obey mode useful for Convtext.

In my putative Convtext mode, it'd be nice to make Convtext's special 
use of ":" stand out more clearly, perhaps displaying wider as " : " 
with a green background.  (Convtext uses colon to mean change the 
preceding text to the following text.  It applies only to the first 
colon on a line; any subsequent colon on that line is literal.)


-- 
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxx
List archives and instructions at
http://diy.Torrens.org/RO/StrongED/index.html