> <\body> files> The package provides syntax highlighting files for various editors. Currently, the editors , , , and are supported. Relevant files are in the folder editor\/> and installation instructions for each editor are given below. An example file is also provided for testing purposes. > To edit code with , the mode can be used. It features automatic indentation and syntax highlighting. The necessary code is available in the file in the source distribution and can be installed as follows: <\shell-code> mkdir -p $HOME/emacs.d/ cp $HOME/.emacs.d/ The following can be added in the file :\ <\shell-code> (setq load-path\ \ \ (append load-path (list (expand-file-name "~/.emacs.d")))) (setq auto-mode-alist\ \ \ \ \ \ (append auto-mode-alist '(("\\\\.mmx\\\\\|\\\\.amx" . mmx-mode)))) (autoload 'mmx-mode\ \ \ \ \ \ "mmx-mode.el" "Major mode for editing Mathemagix files" t) Once this is done, the will be loaded automatically for files with suffix or . > The file provides syntax highlighting for code in . It can be installed as follows: <\shell-code> mkdir -p $HOME/.vim/syntax/ cp mmxlight/syntax-highlighting/vim/mmx.vim $HOME/.vim/syntax/ To automatically apply this syntax highlighting to files with or extension, add the following lines in the file .vimrc>: <\shell-code> au BufRead,BufNewFile *.mmx set filetype=mmx au BufRead,BufNewFile *.amx set filetype=mmx To use automatic indentation, add also the following line to .vimrc>: <\shell-code> autocmd FileType mmx setlocal expandtab shiftwidth=2 softtabstop=2 cindent > The file provides syntax highlighting for code in . To use it, just add the following line to .nanorc>: <\shell-code> include "\mmx-path\/mmxlight/syntax-highlighting/nano/mmx.nanorc" where mmx-path\> is the root of the source distribution. Simple automatic indentation (reuse the indentation of the previous line) can be enabled by typing in the editor. To enable this by default, add the following line to .nanorc> (see and for more details): <\shell-code> set autoindent > The file provides syntax highlighting for code in (Gnome's default text editor) and other -based editors. To install it, you first need to check which version you are using (3.0 is most common, but some use 2.0 or 4 instead): <\shell-code> find /usr/share /usr/local/share -type d -name gtksourceview* # output: version\> Then it suffices to copy to the appropriate location: <\shell-code> mkdir -p $HOME/.local/share/gtksourceview-\version\/language-specs/ cp mmxlight/syntax-highlighting/gedit/mmx.lang $HOME/.local/share/gtksourceview-\version\/language-specs/ Simple automatic indentation (reuse the indentation of the previous line) can be enabled in the preferences panel. > The file provides syntax highlighting and automatic C-style indentation for code in (KDE's default text editor). It can be installed as follows: <\shell-code> mkdir -p $HOME/.local/share/org.kde.syntax-highlighting/syntax/ cp $HOME/.local/share/org.kde.syntax-highlighting/syntax/ . If you don't have this file, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.> >