Skip to main content

Sublime 3 Syntax highlighting for Befunge source code

While working on the /r/dailyprogrammer challenge for the day, I got sidetracked with not having any syntax highlighting while writing Befunge-98 code. After getting bogged down in a quagmire of string escape sequences through different file types. Writing regex to match befunge, in YAML that got automatically translated to XML was frustrating, but became much more straightforward when I realized I could work directly in the final XML and skip the translation step. Here’s my current syntax highlighting definition file: