Text editors and IDEs for Hugo

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:smile: :sad: :eek: :shock: :cool: :-x :razz: :oops: :evil: :twisted: :wink: :idea: :arrow: :neutral: :mrgreen:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Text editors and IDEs for Hugo

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.

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.

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

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.

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

Thank you very much!

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\

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

Where can I grab the Gedit syntax file?

(sorry, should have asked this earlier)

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

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]

by Jizaboz » Mon Jun 25, 2012 10:58 am

Cool, I had wondered about this too. I most commonly use Gedit for both Linux and Windows.

by Roody_Yogurt » Sat Jun 23, 2012 1:43 pm

Also, prompted by Cryptonomic's (Jeff Nyman's) tutorial ( http://www.joltcountry.com/phpBB2/viewtopic.php?t=2589 , the link is only available with the internet wayback machine), I checked out the editor Source Edit, which actually seems to be a pretty decent free editor (funny how a lot of the best editors to use with Hugo had their heyday nearly 10 years ago). Anyhow, I made a syntax file for it and added it to the "supported editors" page:

http://hugo.gerynarsabode.org/index.php ... ed_Editors

It only has one keyword group, but I don't find that as annoying as I thought I would and it even has a Function List option. So, nice.

Currently, my recommendations for free Windows editor would go like this:
  • TextPad (uncrippled shareware) - TextPad isn't perfect, but it's still being maintained and has some nice features, like being able to restrict spell-check to strings.
For people who don't even want the guilt of nagware, though, these are pretty good, too:
  • Source Edit - The options menu might be a little unkind to people unfamiliar with setting up an editor, but for the most part, Source Edit has some nice features, including that aforementioned function list feature.
  • Emerald Editor (sometimes known as Crimson Editor)- Getting multi-line comments to work on this was a headache, but now that that is done, Emerald Editor is tight little program. It has a crazy amount of possible keyword groups, and setting up basically consists of dropping the syntax files into the right directories.

by Roody_Yogurt » Sat Jun 23, 2012 1:15 pm

Ice Cream Jonsey wrote:I wanted to note what Roody told me in the mud yesterday because I will forget and I want to remember and use this in EditPlus2:

[Hugo]/009 Ellison says (to Recchi), "another nice thing you can do with EditPlus, btw, is use the Function List feature (under Search) to jump from routine to routine really quickly. you set it up in preferences under syntax and highlighting in the 'function patterns' button.

I have it look for

'^(routine|replace)' and '^(object|option|room|character|player_character|door|female_character|class|component|scenery|direction|remote_object|supercontainer)'"
I just wanted to point out that while I split up the "function pattern" there for readability (even if I didn't balance them well), I recently figured out that splitting them up has been what has caused my function list sorting to be out of order from time to time. So, you are better off combining them into one super-pattern.

I guess that leave the other slot open for a completely different pattern.

by Roody_Yogurt » Thu Jun 21, 2012 7:42 pm

I saw that just earlier today (I was looking to see if, indeed, it was off the net). The JC version also has the benefit of having the original graphics. Anyhow, the moral of the story is, if you're going to do a newsletter, be sure to interview Jonsey.

by Ice Cream Jonsey » Thu Jun 21, 2012 7:20 pm

The Hugo Newsletter is linked-to from the Trotting Krips site. I think the URL is http://www.joltcountry.com/trottingkrips

by Roody_Yogurt » Thu Jun 21, 2012 4:20 pm

I got a request for a syntax file for Kate, an editor for KDE. I tried taking a look at creating a highlighting file myself, using http://docs.kde.org/stable/en/kde-basea ... ormat.html as a guide.

Unfortunately, I'd also like to have a ton of example files to look at, and it doesn't seem like you can download those without having the program installed, so I've given up for the meantime.

Still, if anyone wants to have their own go at it, here is a file with some keyword groups already defined (that part is a modified version of the gedit syntax file):
http://roody.gerynarsabode.org/JC/hugo_kate.xml (right click and select 'save as'- not a working xml file yet)

Everything else still needs work, though.

by Roody_Yogurt » Wed Jun 20, 2012 3:07 pm

Whoa, it is you. The last couple times you've posted, since your new handle has that extra "e", I figured you were one of the other regulars here cribbing off of your nick without being forthright about it (which even annoyed me but I wasn't going to make a big deal about it).

Anyhow, glad to have you around! I will definitely send you an e-mail for those files. Also, if you have any suggestions for ways HbE could be better, feel free to let us know (or even get an account and write some pages yourself).

Jizaboz's recent posting here shows that we could probably do a better job of explaining how to set up a nice compiling environment, but there's probably plenty of other stuff, too.

2011 saw the most Hugo games released in many years. Since most of the Hugo Comp games were released in 2012, we already have a good start, but here's to a handful more games being done before the year is out!

by Hugellae » Wed Jun 20, 2012 11:39 am

Roody,

Slightly OT, but I just realized I've got some random Hugo stuff I collected around 2001-2003 for the never-realized Hugonomicon. Stuff that no longer appears to be online(?)), such as the 2 issues of the Hugo newsletter, and some games/source not in the IF DB. Interested? Shoot me an email at cenazoic AT gmail.

by Roody_Yogurt » Wed Jun 20, 2012 11:12 am

Thanks, Hugellae, we also have a link to that here: http://hugo.gerynarsabode.org/index.php ... ed_Editors

by Hugellae » Wed Jun 20, 2012 8:43 am

Roody, there's also an Emacs major-mode here:

http://www.plover.net/~ctate/hugo-mode.el

by Roody_Yogurt » Sun Jun 17, 2012 9:56 pm

I updated the EditPlus page on HbE to go into further depth about some of my favorite features: http://hugo.gerynarsabode.org/index.php?title=EditPlus

Top