<html><body><div>Check:<br><br></div><div><a href="https://mailman.ntg.nl/pipermail/ntg-context/2005/011875.html">https://mailman.ntg.nl/pipermail/ntg-context/2005/011875.html</a></div><div><br data-mce-bogus="1"></div><div><a href="https://github.com/khiri-co/language-metapost">https://github.com/khiri-co/language-metapost</a></div><div><br data-mce-bogus="1"></div><div><a href="https://lists.gnu.org/archive/html/emacs-pretest-bug/2005-02/msg00327.html">https://lists.gnu.org/archive/html/emacs-pretest-bug/2005-02/msg00327.html</a><br><br></div><div><a href="https://users.dimi.uniud.it/~nicola.vitacolonna/software/metapost-smultron/">https://users.dimi.uniud.it/~nicola.vitacolonna/software/metapost-smultron/</a><br><br></div><div><a href="http://users.dimi.uniud.it/~nicola.vitacolonna/software/metapost-textwrangler/">http://users.dimi.uniud.it/~nicola.vitacolonna/software/metapost-textwrangler/</a><br><br><a href="http://hackage.haskell.org/package/highlighting-kate-0.5.7/src/Text/Highlighting/Kate/Syntax/Metafont.hs">http://hackage.haskell.org/package/highlighting-kate-0.5.7/src/Text/Highlighting/Kate/Syntax/Metafont.hs</a><br><br></div><div>etc. <br><br>google: "<a href="https://www.google.cz/search?q=metapost+syntax+coloring&client=safari&rls=en&dcr=0&ei=prW7WuiRMszKwAKthKSoDw&start=10&sa=N&biw=1680&bih=940" data-mce-href="https://www.google.cz/search?q=metapost+syntax+coloring&client=safari&rls=en&dcr=0&ei=prW7WuiRMszKwAKthKSoDw&start=10&sa=N&biw=1680&bih=940">metapost syntax coloring</a>"</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Martin S.</div><div><br>On Mar 28, 2018, at 04:36 PM, Bill Gee via Therion <therion@speleo.sk> wrote:<br><br></div><div><blockquote type="cite"><div class="msg-quote"><div class="_stretch"><span class="body-text-content">Hello everyone -<br><br>I spent more time this morning working through some details in the syntax <br>highlighting file for Kate and KWrite. Attached is version 1.1. Bruce, can <br>you put this on the Web site?<br><br>Changes:<br><br>-- Added several more keywords such as ceiling-step and floor-step.<br>-- Created a rule for MetaPost keywords. This is not perfect - it probably <br>has only a few of the keywords it should have. But it is a start.<br>-- Numbers are now highlighted in color.<br>-- Cleaned up some stuff left over from the file I used as a base.<br><br>To Do:<br><br>The thing that bothers me most is that some keywords (such as "def") are used <br>in both MetaPost and TeX code. I would like to find a way to detect "code <br>metapost/endcode" and "code tex-map/endcode" sections, then change the rules <br>within those sections. I think it can be done, but there is a learning curve <br>to deal with.<br><br>-- <br>Bill Gee<br><br><br><br>On Monday, March 26, 2018 11:00:51 AM CDT Bill Gee wrote:<br><blockquote type="cite" class="quoted-plain-text">Hello everyone -</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">Xavier's effort inspired me to take a look at syntax highlighting</blockquote><blockquote type="cite" class="quoted-plain-text">definitions for other editors. I run Fedora 27 with KDE desktop, so the</blockquote><blockquote type="cite" class="quoted-plain-text">editor I use most is Kate/KWrite. KDE has a system-wide syntax</blockquote><blockquote type="cite" class="quoted-plain-text">highlighting system that is part of KatePart.</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">The attached XML file is for use in either Kate or KWrite. It is very much</blockquote><blockquote type="cite" class="quoted-plain-text">a work in progress. I have only scratched the surface of what is possible.</blockquote><blockquote type="cite" class="quoted-plain-text">One major thing I want to look at is to see if there is a way to make the</blockquote><blockquote type="cite" class="quoted-plain-text">syntax highlighting change in "code metapost" and "code tex-map" sections.</blockquote><blockquote type="cite" class="quoted-plain-text">KatePart already has highlighting files for metafont and latex. With any</blockquote><blockquote type="cite" class="quoted-plain-text">luck there is a way to reuse those.</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">Copy the XML file to your user profile directory. The exact location will</blockquote><blockquote type="cite" class="quoted-plain-text">vary depending on your distribution. On my Fedora 27 system it is</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text"> $HOME/.local//share/org.kde.syntax-highlighting/syntax</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">You may have to create this directory.</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">The file can also go in the common syntax highlighting directory which (on</blockquote><blockquote type="cite" class="quoted-plain-text">my system) is</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text"> /usr/share/kde4/apps/katepart/syntax</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">You will need root permissions to copy to this folder.</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">The next time you start either Kate or KWrite, the new file will be used.</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">I plan to look at syntax highlighting files for both joe and gvim.</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">> Dear all,</blockquote><blockquote type="cite" class="quoted-plain-text">></blockquote><blockquote type="cite" class="quoted-plain-text">> I am not sure to have post this info for those who are interested in it.</blockquote><blockquote type="cite" class="quoted-plain-text">></blockquote><blockquote type="cite" class="quoted-plain-text">> I often edit my therion file inside an external editor as Textwrangler or</blockquote><blockquote type="cite" class="quoted-plain-text">> Brackets. I wrote some configuration files for both softwares to color the</blockquote><blockquote type="cite" class="quoted-plain-text">> Therion’s syntax. That is not complete, they may be still errors, but you</blockquote><blockquote type="cite" class="quoted-plain-text">> can find them here : For Texwrangler :</blockquote><blockquote type="cite" class="quoted-plain-text">> <a href="https://github.com/robertxa/Therion-TextWrangler" data-mce-href="https://github.com/robertxa/Therion-TextWrangler">https://github.com/robertxa/Therion-TextWrangler</a> For Brackets :</blockquote><blockquote type="cite" class="quoted-plain-text">> <a href="https://github.com/robertxa/Therion-Brackets" data-mce-href="https://github.com/robertxa/Therion-Brackets">https://github.com/robertxa/Therion-Brackets</a></blockquote><blockquote type="cite" class="quoted-plain-text">></blockquote><blockquote type="cite" class="quoted-plain-text">> Have a good weekend,</blockquote><blockquote type="cite" class="quoted-plain-text">></blockquote><blockquote type="cite" class="quoted-plain-text">> Xavier</blockquote><br></span></div><div class="_stretch"><span class="body-text-content">_______________________________________________<br>Therion mailing list<br><a href="mailto:Therion@speleo.sk" data-mce-href="mailto:Therion@speleo.sk">Therion@speleo.sk</a><br><a href="https://mailman.speleo.sk/listinfo/therion" data-mce-href="https://mailman.speleo.sk/listinfo/therion">https://mailman.speleo.sk/listinfo/therion</a><br></span></div></div></blockquote></div></body></html>