Is there a way to have brace/bracket matching implemented? Especially for (Lisp-(like (code))) with all its brackets that would be a nice feature to have.
Syntax highlighting in a Maxima plugin session:
is possible to have that implemented?
is it possible to get brace/bracket matching in the Maxima plugin going? If so, how?
I can answer this question only. There is a “program bracket matching” option in the Preferences, which I can find only when “Complex actions” is set to “Through popup windows”; then I find it in the “Other” tab. As far as I can see, it works for Scheme only; I tried it in the Executable folds for Lisp and Maxima and it does not work there, I can’t try it in sessions b/c in my TeXmacs under Ubuntu sessions do not work, perhaps I will try it under Windows later.
The example on this page is for Python. If I copy the code in the lovelace example and render it in TeXmacs with % python ; lovelace, I get exactly the same highlighting as on the webpage.
Did you check what pygments gives you for the example code in the screenshot, so we can compare apples with apples?
I don’t see highlighting code for Maxima in the repository currently. A first step would be to look at examples of existing highlighting (in plugins/code/progs/, e.g. julia-lang.scm) and adapt it to maxima.
I just did and with % python ; lovelace I too get the same results now. With % python ; solarized-light however I do not get the yellowish background colouring though.
What is a genetic binary? Would it work on macOS X 13.6/15.7 and can it be compiled with MacPorts?
Yes, I have, if Edit –> Preferences –> Keyboard –> Automatic brackets –> Enable is the same thing. That did work even before I put your code in my-init-texmacs.scm.
It seems to me that this does’t relate to plugin sessions but inserting code as formatted text. Well, Maximia isn’t listed but that’s no big deal as we’ve got your payments plugin.
in TeXmacs/progs/kernel/texmacs/tm-modes.scm, under the section Mode related these lines:
The code you have in the above post tells TeXmacs what colours you want code to be in, but not what the keywords are that you want to have highlighted. You’ll have to adapt the rest of julia-langs.scm as well.