Text editors and IDEs for Hugo

This is a discussion / support forum for the Hugo programming language by Kent Tessman. Hugo is a powerful programming language for making text games / interactive fiction with multimedia support.

Hugo download links: https://www.generalcoffee.com/hugo
Roody Yogurt's Hugo Blog: https://notdeadhugo.blogspot.com
The Hugor interpreter by RealNC: http://ifwiki.org/index.php/Hugor

Moderators: Ice Cream Jonsey, joltcountry

Gerynar
Posts: 12
Joined: Tue May 11, 2010 5:50 pm
Location: Indiana
Contact:

Post by Gerynar »

If you're truly interested in doing a hugo syntax file for kate, I've uploaded a few sample files at http://gerynarsabode.org/Downloads/katehilite.zip
[/url]

Roody_Yogurt
Posts: 2179
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt »

Just to give an update, I did get a Kate syntax file working (after cribbing chunks of code off of the Inform syntax file), and it is now up at the Supported Editors page:
http://hugo.gerynarsabode.org/index.php ... ed_Editors

User avatar
Jizaboz
Posts: 4811
Joined: Tue Jan 31, 2012 2:00 pm
Location: USA
Contact:

Post by Jizaboz »

Where can I grab the Gedit syntax file?

(sorry, should have asked this earlier)

Roody_Yogurt
Posts: 2179
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt »

Here's a direct link:

http://roody.gerynarsabode.org/hugo.lang

In Windows, it goes in:
\gedit\share\gtksourceview-2.0\language-specs\

Maybe that gives a clue on where to put it in Linux, too.

I also made a color scheme file:
http://roody.gerynarsabode.org/colors.xml

That goes in:
\share\gtksourceview-2.0\styles\

User avatar
Jizaboz
Posts: 4811
Joined: Tue Jan 31, 2012 2:00 pm
Location: USA
Contact:

Post by Jizaboz »

Thank you very much!

Roody_Yogurt
Posts: 2179
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt »

You're welcome! To give credit where its due, though, most of the gedit syntax file was written by Royce Odle. I think I may have added another keyword group, but there's always more that could be added.

Roody_Yogurt
Posts: 2179
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt »

Just wanted to update this thread to say that Notebook Plus Plus has improved since I last looked at it. There can now be up to 8 keyword groups, and line-commenting/multi-line commenting works if you ignore the commenting section and go straight to the delimiter settings. "Find in Files" also looks like it works well enough now, and some of the plugin stuff works better, too.

I'm still happy with my other editor choices, but this is good news for anyone who wanted to love N++ a bit more. Anyhow, an updated user-definition file can be found here:
http://roody.gerynarsabode.org/hbe/syntax/npp/hugo.xml

Bainespal
Posts: 151
Joined: Fri Jul 09, 2010 8:59 am

Post by Bainespal »

Do you happen to know where to put the XML file in order to get the syntax highlighting working on Kate in Kubuntu? It seems like you should be able to import it from the Kate menu, from Settings>Configure>Fonts & colors>Highlighting Text Styles, but when I try to import "hugo.xml," it says, "File is not a single highlighting color file." In the dialog for selecting the file, it automatically has "None.katehlcolor" in the field for the file name, so I assume that's the extension it's looking for.

Roody_Yogurt
Posts: 2179
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt »

The folder path for the syntax folder under Windows is:
/KDE/share/apps/katepart/syntax/hugo.xml Maybe that can help you find the right place in Linux, too.

Other than that, I know I created the Kate syntax file back when I was still accidentally saving all of my files in PC format, so it's possible that your Kate is choking on the wrong-format carriage returns. In any case, I uploaded a new version in the correct format.

Post Reply