Dwarf Fortress > DF Modding

[outdated] New Notepad++ raw file highlighting mode!

(1/6) > >>

Kazimuth:
This project is out of date! Go to the updated version here:

http://www.bay12forums.com/smf/index.php?topic=158324.0

(thanks Sirmaril!)


I made a highlighting mode for Notepad++!

A sample:
Spoiler (click to show/hide)
The download: https://www.dropbox.com/s/bmor3vsz5nf6c1k/df_raw_lang_npp_0.2.zip

To install:
Download the archive and unzip it somewhere.
Start up NPP, open the languages menu, and select 'Define your language':
Spoiler (click to show/hide)In the language dialog, select 'Import':
Spoiler (click to show/hide)Select the extracted xml file and hit 'Open':
Spoiler (click to show/hide)Reboot notepad. Now, you should see something like this:
Spoiler (click to show/hide)Select that option when you're working with a raw file and boom, highlighting!

It's supposed to highlight only tokens built in to DF, so as to still work with total-conversion mods. If something is highlighted and shouldn't be, or isn't and should, either you're missing a bracket somewhere or I missed some tokens; if you can't find the problem, post in the thread and I'll try to fix it.

Original post:
Spoiler (click to show/hide)So I was hacking around with some raw files in notepad++ this morning (if you haven't heard of it, notepad++ is a handy windows text editor)
and I was thinking about how nice it would be to have syntax highlighting. Then I remembered that you can make user-defined syntax highlighting modes. So I figured I would spend 20 minutes trying to hack one together.
Five hours later, I have results!


The download: https://www.dropbox.com/s/bmor3vsz5nf6c1k/df_raw_lang_npp_0.2.zip

If I have more free time I might also make a vim or emacs highlighting mode   :)

Putnam:
Ah, I've been using another one for a while, and this one looks much better...

smirk:
Excellent! There is another of these floating around (in the Mods and Utilities List somewhere), but it's several years and quite a few versions out of date. Giving this one a try now.

crazyjake56:
Spoiler (click to show/hide)http://www.youtube.com/watch?v=VoW9czgQBqE
This really is amazing.

Etherdrinker:
Nice! added to my Notepad ++ :3

Navigation

[0] Message Index

[#] Next page

Go to full version