New syntax highlighter

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

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

New syntax highlighter

Post by Bainespal »

First, I'll introduce myself. My name is Paul Lee. I'm 19, and I've been in to IF since I was about 11. I occasionally post on the Interactive Fiction Community Forum at intfiction.org. I taught myself Inform 6 as a young teen. I've also looked at the documentation and tutorials for most of the mainline IF languages, and I've recently been studying Hugo. When I was 14, I released a buggy little game into the 2005 IF Competition ("Dreary Lands"). I might end up working on a more serious IF project soon, very likely with Hugo. I was helped with a simple Hugo question on the IF Community Forum by someone here -- Ice Cream Jonsey (Robb Sherwin?), back in December. I'm generally pretty lazy and indecisive. ;-) I'm a Christian; I mention this because what I believe essentially directs my goals and defines my life.

Enough about me. Today I finished tweaking a highlighter template for the ConTEXT text editor that will provide syntax coloring for Hugo. I hope to get the file hosted at either the IF Archive or the Context Website, but for now it can be downloaded from a free file hosting site that I use.

Here's a link to the ConTEXT website. ConTEXT is a great, free programmer's text editor for Windows.

EDIT: The highlighter file is now available from the Highlighters page on the ConTEXT website: http://cdn.contextstatic.org/downloads/ ... s/Hugo.chl

2ND EDIT: Now available from the IF Archive:
http://www.ifarchive.org/if-archive/pro ... s/Hugo.chl
Last edited by Bainespal on Thu Jul 22, 2010 10:50 am, edited 1 time in total.

User avatar
Ice Cream Jonsey
Posts: 30184
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Post by Ice Cream Jonsey »

Glad to hear of it - congratulations!
the dark and gritty...Ice Cream Jonsey!

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

Post by Roody_Yogurt »

Welcome, Paul! Always good to have another person. Be sure to keep us updated with your endeavors.

I took a look at ConTEXT and your highlighter file. It looks nice, but ConTEXT seems to choke on distinguishing ! from !\ . Hopefully they will provide some way of getting around that at some point.

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

Post by Bainespal »

Thank you! It feels good to have gotten a project out there, finally. :)
Roody_Yogurt wrote: took a look at ConTEXT and your highlighter file. It looks nice, but ConTEXT seems to choke on distinguishing ! from !\ . Hopefully they will provide some way of getting around that at some point.
You're right about that. If there's a way to make ConTEXT recognize multi-line comments, it's not obvious to me. I haven't used ConTEXT enough with other programming languages to be sure, nor have I had more than a glance at its forum.

Post Reply