Text editors and IDEs for Hugo

Hugo programming discussion. http://www.generalcoffee.com/hugo
Hugo By Example: http://hugo.gerynarsabode.org/index.php?title=Main_Page
Roody Yogurt's Hugo Blog: http://notdeadhugo.blogspot.com

Moderators: Ice Cream Jonsey, AArdvark, Kent

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

Post by Gerynar » Mon Jul 09, 2012 7:48 pm

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: 1993
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt » Mon Jul 16, 2012 2:24 pm

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: 775
Joined: Tue Jan 31, 2012 2:00 pm
Location: USA
Contact:

Post by Jizaboz » Mon Jul 16, 2012 2:37 pm

Where can I grab the Gedit syntax file?

(sorry, should have asked this earlier)

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

Post by Roody_Yogurt » Mon Jul 16, 2012 2:42 pm

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: 775
Joined: Tue Jan 31, 2012 2:00 pm
Location: USA
Contact:

Post by Jizaboz » Mon Jul 16, 2012 3:33 pm

Thank you very much!

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

Post by Roody_Yogurt » Tue Jul 17, 2012 1:13 pm

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: 1993
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt » Mon Apr 08, 2013 10:23 am

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 » Wed Apr 10, 2013 7:41 am

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: 1993
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt » Wed Apr 10, 2013 11:22 am

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