Syntax highlighting: Difference between revisions
Restored page from Google Cache, uploaded by John Pye |
No edit summary |
||
| Line 1: | Line 1: | ||
If you would like to make use of syntax highlighting with ASCEND code, we have a number of options available: | If you would like to make use of syntax highlighting with ASCEND code, we have a number of options available: | ||
== gedit == | == gedit == | ||
gedit is the default text editor in GNOME (Linux). We have a syntax definition for gedit to support a4c/a4l files. This file, <tt>ascend.lang</tt> needs to be placed in <tt>/usr/share/gtksourceview-N.0/language-specs/ascend.lang</tt>. The exact location where you need to put the file may vary depending on your version of GNOME (check the version fo gtksourceview installed on your system). Note that unless you also follow the instructions in [[Desktop integration]], you will still have to manually specify that you want to apply this syntax highlighting. | gedit is the default text editor in GNOME (Linux). We have a syntax definition for gedit to support a4c/a4l files. This file, <tt>ascend.lang</tt> needs to be placed in <tt>/usr/share/gtksourceview-N.0/language-specs/ascend.lang</tt>. The exact location where you need to put the file may vary depending on your version of GNOME (check the version fo gtksourceview installed on your system). Note that unless you also follow the instructions in [[Desktop integration]], you will still have to manually specify that you want to apply this syntax highlighting. | ||
* See {{src|tools/gedit/ascend.lang}} (for older systems based on gtksourceview-1.x) | * See {{src|tools/gedit/ascend.lang}} (for older systems based on gtksourceview-1.x) | ||
| Line 14: | Line 11: | ||
[http://www.textpad.com TextPad] is a popular text editor on Windows | [http://www.textpad.com TextPad] is a popular text editor on Windows | ||
* see {{src|tools/textpad/ascend.syn}} | * see {{src|tools/textpad/ascend.syn}} | ||
| Line 22: | Line 17: | ||
[http://www.andre-simon.de/index.html highlight] is a syntax highlighting utility that can be used to produce HTML, LaTeX and other forms of highlighted output. It can also be integrated with the scientific wordprocessor [http://www.lyx.org LyX] as well as the online code viewer [http://www.viewvc.org/ ViewVC]. | [http://www.andre-simon.de/index.html highlight] is a syntax highlighting utility that can be used to produce HTML, LaTeX and other forms of highlighted output. It can also be integrated with the scientific wordprocessor [http://www.lyx.org LyX] as well as the online code viewer [http://www.viewvc.org/ ViewVC]. | ||
* see {{src|tools/highlight/a4c.lang}} | * see {{src|tools/highlight/a4c.lang}} | ||
| Line 30: | Line 23: | ||
[http://www.vim.org/ Vim] is a very popular Linux/Unix text editor with a history going back to 1976. Syntax file contributed by Edgar Simo. | [http://www.vim.org/ Vim] is a very popular Linux/Unix text editor with a history going back to 1976. Syntax file contributed by Edgar Simo. | ||
* see {{src|tools/vim/ascend.vim}} | * see {{src|tools/vim/ascend.vim}} | ||
| Line 37: | Line 29: | ||
[http://www.nano-editor.org/ GNU nano] is the default console-based editor for several newer distributions of Linux including Fedora and Ubuntu. It includes support for syntax highlighting since about 2002. A <tt>~/.nanorc</tt> for this editor has been contributed by Ondrej Krc-Jediny. | [http://www.nano-editor.org/ GNU nano] is the default console-based editor for several newer distributions of Linux including Fedora and Ubuntu. It includes support for syntax highlighting since about 2002. A <tt>~/.nanorc</tt> for this editor has been contributed by Ondrej Krc-Jediny. | ||
* see {{src|tools/nano/ASCEND.nanorc}} | * see {{src|tools/nano/ASCEND.nanorc}} | ||
| Line 44: | Line 35: | ||
Previously, Emacs was used by a lot of the core ASCEND developers, and a special 'ASCEND mode' was developed. See {{srcdir|tools/emacs}}. There is some question about whether this mode still works correctly, see [http://www.mail-archive.com/ascend-sim-users@lists.sourceforge.net/msg00098.html the details]. | Previously, Emacs was used by a lot of the core ASCEND developers, and a special 'ASCEND mode' was developed. See {{srcdir|tools/emacs}}. There is some question about whether this mode still works correctly, see [http://www.mail-archive.com/ascend-sim-users@lists.sourceforge.net/msg00098.html the details]. | ||
== listings == | == listings == | ||
| Line 50: | Line 40: | ||
Listings is a LaTeX package that performs syntax highlighting. See the latex preamble of our <tt>book.lyx</tt> file. | Listings is a LaTeX package that performs syntax highlighting. See the latex preamble of our <tt>book.lyx</tt> file. | ||
[[Category:Documentation]] | |||
Revision as of 08:26, 11 July 2010
If you would like to make use of syntax highlighting with ASCEND code, we have a number of options available:
gedit
gedit is the default text editor in GNOME (Linux). We have a syntax definition for gedit to support a4c/a4l files. This file, ascend.lang needs to be placed in /usr/share/gtksourceview-N.0/language-specs/ascend.lang. The exact location where you need to put the file may vary depending on your version of GNOME (check the version fo gtksourceview installed on your system). Note that unless you also follow the instructions in Desktop integration, you will still have to manually specify that you want to apply this syntax highlighting.
- See tools/gedit/ascend.lang (for older systems based on gtksourceview-1.x)
- See tools/gtksourceview-2.0/ascend.lang (for current systems based on gtksourceview-2.x)
TextPad
TextPad is a popular text editor on Windows
highlight
highlight is a syntax highlighting utility that can be used to produce HTML, LaTeX and other forms of highlighted output. It can also be integrated with the scientific wordprocessor LyX as well as the online code viewer ViewVC.
Vim
Vim is a very popular Linux/Unix text editor with a history going back to 1976. Syntax file contributed by Edgar Simo.
GNU nano
GNU nano is the default console-based editor for several newer distributions of Linux including Fedora and Ubuntu. It includes support for syntax highlighting since about 2002. A ~/.nanorc for this editor has been contributed by Ondrej Krc-Jediny.
GNU Emacs
Previously, Emacs was used by a lot of the core ASCEND developers, and a special 'ASCEND mode' was developed. See tools/emacs. There is some question about whether this mode still works correctly, see the details.
listings
Listings is a LaTeX package that performs syntax highlighting. See the latex preamble of our book.lyx file.