Supported Editors

From Hugo By Example

Jump to: navigation, search

You can use any text editor to view, edit, and write Hugo source files, but the ones on this list can make working with Hugo code easier by coloring certain groups of Hugo keywords. Download links to the syntax definition files that you need for each editor in order for it to highight Hugo code are provided. This listed is ordered by operating system.

Contents

Linux

emacs

Website Cost Syntax File
http://www.gnu.org/software/emacs/ FREE http://hg.0branch.com/hugo-mode

gedit

Website Cost Syntax File
http://projects.gnome.org/gedit/ FREE http://roody.gerynarsabode.org/hbe/syntax/gedit/hugo.lang
Note
Icon note.png
The syntax file was written by the Admin of this site, so it's Hugo By Example TM approved! It goes in your /usr/share/gtksourceview-3.0/language-specs or /usr/share/gtksourceview-2.0/language-specs directories, depending on your installation. Also, check out the color style listed for gedit in the Windows section, if you'd like another color scheme.


Kate

Website Cost Syntax File
http://kate-editor.org/ FREE http://roody.gerynarsabode.org/hbe/syntax/Kate/hugo.xml
Note
Icon note.png
Also available on Windows and Mac, using KDE on Windows and MacPorts respectively.

UltraEdit

Website Cost Syntax File
http://www.ultraedit.com/products.html ~$60 http://ifarchive.org/if-archive/programming/editors/hugo_wordfile.txt

Vim

Website Cost Syntax File
http://vim.sourceforge.net/ free http://hg.0branch.com/hugo-vim/overview


Mac

emacs

Website Cost Syntax File
http://www.gnu.org/software/emacs/ FREE http://hg.0branch.com/hugo-mode

gedit

Website Cost Syntax File
http://projects.gnome.org/gedit/ FREE http://roody.gerynarsabode.org/hbe/syntax/gedit/hugo.lang

UltraEdit

Website Cost Syntax File
http://www.ultraedit.com/products.html ~$60 http://ifarchive.org/if-archive/programming/editors/hugo_wordfile.txt

Vim

Website Cost Syntax File
http://vim.sourceforge.net/ free http://hg.0branch.com/hugo-vim/overview


Windows

(For other Windows applications, see the Windows Apps page.)

ConTEXT

Website Cost Syntax File
http://www.contexteditor.org/ FREE http://www.ifarchive.org/if-archive/programming/editors/Hugo.chl
Note
Icon note.png
The "portable version" on the website has been uploaded with extra files. Once you unpack it, save everything from the "bin" directory but delete everything else. Otherwise, trying to execute the other "ConTEXT.exe" in the package will break aspects of the program like the help menu. Overall, getting the regular version is advised.

EditPlus

Website Cost Syntax File
http://www.editplus.com/ $35 http://roody.gerynarsabode.org/hbe/syntax/editplus/hugo.stx

emacs

Website Cost Syntax File
http://www.gnu.org/software/emacs/ FREE http://hg.0branch.com/hugo-mode

Emerald Editor

Website Cost Syntax File
http://www.emeraldeditor.com/ FREE http://roody.gerynarsabode.org/hbe/syntax/emerald/emeraldhugo.zip

gedit

Website Cost Syntax File
http://projects.gnome.org/gedit/ FREE http://roody.gerynarsabode.org/hbe/syntax/gedit/hugo.lang
Note
Icon note.png
The hugo.lang file goes in the \gedit\share\gtksourceview-2.0\language-specs\ folder.


Also, Here's a color scheme file written to emulate the EditPlus syntax file. Put it in the \share\gtksourceview-2.0\styles\ folder and load it up from "Preferences."

Notepad++

Website Cost Syntax File
http://notepad-plus-plus.org/ FREE http://roody.gerynarsabode.org/hbe/syntax/npp/hugo.xml
Note
Icon note.png
Notepad++ is a great free choice. Go check out the Notepad++ page.

Source Edit

Website Cost Syntax File
http://www.brixoft.net/prodinfo.asp?id=1 FREE http://roody.gerynarsabode.org/hbe/syntax/source_edit/source_edit.zip
Note
Icon note.png
Put the files in the .ZIP in the "Lang" folder where Source Edit is installed to. You'll probably still have to set up file associations in Tools/Options/Files.
In "Language/Tabs", set the Function Pattern to ^(routine|replace|daemon|fuse|event|object|option|room|character|player_character|
door|female_character|class|component|scenery|direction|remote_object|supercontainer).+$ .

TextPad

Website Cost Syntax File
http://www.textpad.com ~$25 for single license (un-crippled shareware) http://roody.gerynarsabode.org/hbe/syntax/textpad/hugo.syn
Note
Icon note.png
Syntax file goes in the "system" directory where TextPad has been installed.

UltraEdit

Website Cost Syntax File
http://www.ultraedit.com/products.html ~$60 http://ifarchive.org/if-archive/programming/editors/hugo_wordfile.txt

Vim

Website Cost Syntax File
http://vim.sourceforge.net/ free http://hg.0branch.com/hugo-vim/overview

Comparison between Windows text editors

Text Editor Do multi-line comments work? Keyword coloring extent and ease Project organization (ability to group source files by game) Ability to search multiple files for code examples Ability to compare differences between files Can execute commands to window Tortoise svn support FTP support Other features or notes
ConTEXT No 5 possible keyword groups; colors are easy to change Yes No Yes yes
(broke in portable version, though)
No No template, help file support
EditPlus Yes easy to change update; lots of possible keyword groups yes
easy to use
yes
shows multiple instances per file, each one clickable
only if used with Tortoise svn yes
works well
Yes Yes clip text support, autocomplete, templates, help file support, function list, configurable tool bar
Emerald Editor Yes 10 possible keyword groups; colors easy to change yes
easy to use
yes
shows multiple instances per file, each one clickable
No yes
works well
No Yes templates
gedit Yes lots of possible keyword groups and colors; a pain to update and modify, though not really
(some plugins should but aren't yet available for the Windows version)
No No No No No text clips (called "tags"), built-in help isn't written yet
Notepad++ yes easy to modify; up to eight keyword color groups available Yes yes
shows multiple instances per file, each one clickable
yes
(requires installation of plugin)
through plugin plugin available yes
through plugin
Update often and very strong.
Source Edit Yes only one keyword group; color easy to change Yes yes
shows multiple instances per file, each one clickable
No Yes No Yes Template support, configurable user tool bar, function list, window splitter
TextPad Yes easy to modify; six keyword color groups available Somewhat supported through the saving of workspaces yes
shows multiple instances per file, each one clickable
Files are not shown side-by-side. Instead, a hard-to-read text dump is sent to the output window. Yes No No clip library, spell check can be limited to strings, environment variables support, fairly configurable
Note
Icon note.png
Reminder: the ability to compare two different files or search multiple files for code is also available in external programs. See the Windows Apps page for links.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox