How to make geany or vi understand Maxima (or any other less known) syntax

Solution 1:

I found a syntax highlighting file for gedit at this link: https://www.ma.utexas.edu/pipermail/maxima/2013/031644.html https://www.dropbox.com/s/thoibnymcigd457/maxima.lang

(Place maxima.lang into /usr/share/gtksourceview-3.0/language-specs/ for gedit3 or /usr/share/gtksourceview-2.0/language-specs/ for gedit2).

I have not tried this myself, but I saw it is indeed a text highlighting file for gedit and it should work.

edit: just for completeness, here http://www.vim.org/scripts/script.php?script_id=398 is one for vi, even though it seems quite old.