Hi Martin - Thanks for the links! I looked them but in the end found little that is useful for what I am doing.
One of the links (the one for Haskell) mentions that it is based on the KatePost syntax definition for metafont. I figured out this morning how to use KatePost's existing syntax files for both LaTeX and MetaFont in my Therion syntax file. It was actually pretty easy! :-) -- Bill Gee On Wednesday, March 28, 2018 10:33:59 AM CDT Martin Sluka via Therion wrote: > Check: > > https://mailman.ntg.nl/pipermail/ntg-context/2005/011875.html > > https://github.com/khiri-co/language-metapost > > https://lists.gnu.org/archive/html/emacs-pretest-bug/2005-02/msg00327.html > > https://users.dimi.uniud.it/~nicola.vitacolonna/software/metapost-smultron/ > > http://users.dimi.uniud.it/~nicola.vitacolonna/software/metapost-textwrangle > r/ > > http://hackage.haskell.org/package/highlighting-kate-0.5.7/src/Text/Highligh > ting/Kate/Syntax/Metafont.hs > > etc. > > google: "metapost syntax coloring" > > > Martin S. > > On Mar 28, 2018, at 04:36 PM, Bill Gee via Therion <[email protected]> > wrote: > > Hello everyone - > > I spent more time this morning working through some details in the syntax > highlighting file for Kate and KWrite. Attached is version 1.1. Bruce, can > you put this on the Web site? > > Changes: > > -- Added several more keywords such as ceiling-step and floor-step. > -- Created a rule for MetaPost keywords. This is not perfect - it probably > has only a few of the keywords it should have. But it is a start. > -- Numbers are now highlighted in color. > -- Cleaned up some stuff left over from the file I used as a base. > > To Do: > > The thing that bothers me most is that some keywords (such as "def") are > used in both MetaPost and TeX code. I would like to find a way to detect > "code metapost/endcode" and "code tex-map/endcode" sections, then change > the rules within those sections. I think it can be done, but there is a > learning curve to deal with. > > > Dear all, > > > > I am not sure to have post this info for those who are interested in it. > > > > I often edit my therion file inside an external editor as Textwrangler or > > Brackets. I wrote some configuration files for both softwares to color the > > Therion’s syntax. That is not complete, they may be still errors, but you > > can find them here : For Texwrangler : > > https://github.com/robertxa/Therion-TextWrangler For Brackets : > > https://github.com/robertxa/Therion-Brackets > > > > Have a good weekend, > > > > Xavier > > _______________________________________________ > Therion mailing list > [email protected] > https://mailman.speleo.sk/listinfo/therion _______________________________________________ Therion mailing list [email protected] https://mailman.speleo.sk/listinfo/therion
