/Haxe-for-Notepad-plusplus

Syntax Highlighting for Haxe files in Notepad++ (UDL v2.1)

Primary LanguageJavaScriptMIT LicenseMIT

Haxe for Notepad++

Syntax Highlighting for Haxe files in Notepad++ (UDL v2.1)

What's This Thing

Just an xml file that gives you syntax highlighting/coloring for .hx files inside recent versions of Notepad++ (the ones that support the User Defined Language).

How to Use it

  • Download the haxe-dark.xml file (or haxe-light.xml)
  • Open Notepad++
  • Go to Language -> Define your language..., click on Import... and select the haxe-dark.xml file you've downloaded
  • Close and restart Notepad++
  • Done

Screenshots

Here's a preview of how it looks like:

haxe-dark.xml | preview

haxe-light.xml | preview

Thanks to @yellowafterlife for the original work, and to the contributors of haxe-TmLanguage.

UDL 2.1 Themer

You can customize the theme in the browser with this little tool (WIP).

Hint: CTRL+click on code in the preview panel to jump to the associated udl rule.

The themer works by mapping udl to css and back again (mappings are in stylemap.haxe.json).

The preview.haxe.html file is directly exported from Notepad++ (Plugins->NppExport->Export to HTML), and injected as is.

It can be used to live-preview and edit other udl files using stylemap.generic.json (example LESS), or using a custom style-mapping file (f.e. see stylemap.haxe.json).

LICENSE (MIT)

See LICENSE.