Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3

Author Topic: Notepad++ syntax highlighting for DF raws  (Read 16332 times)

Fieari

  • Bay Watcher
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #15 on: December 25, 2008, 12:01:32 am »

Still doesn't work for me.  I don't know why, as I don't know Notepad++ well enough yet.

I'm assuming %appdata% is the program location, ie, C:\Program Files\Notepad++

I searched my computer for any folder named Notepad++, and that was the only one that showed up.
Logged

qwert

  • Bay Watcher
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #16 on: December 25, 2008, 12:15:16 pm »

Nope, just directly enter %appdata% it's a hidden folder that usually hides user-specific info, in this case, custom languages. %appdata% is a shortcut since it's exact location is unique on every computer, specifically "C:\Documents and Settings\USERNAMEHERE\Application Data\"
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #17 on: January 05, 2009, 04:21:18 am »

Ugh, I don't get it. I want to make another group of words with different colors and I can't do it!
I mean, all new Keywords groups are ignored. For example even if I rename Words1 to Words11 in EVERY place in this file, it becomes obsolete. So I can't make Words5 Keywords group. Are the names described somewhere else outside of this file?!
Also, how to make the spacing between lines smaller? They are spread too wide for me so it's hard to read.
« Last Edit: January 05, 2009, 05:31:49 am by Deon »
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

qwert

  • Bay Watcher
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #18 on: January 05, 2009, 11:50:31 am »

Once again, Notepad++ is very limited on what you can accomplish with a custom language, there are unfortunately only four possible keyword groups (trust me, I spent several hours trying to fix it).
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #19 on: January 05, 2009, 12:03:31 pm »

Thank you, I will just limit something then to have a few of the very often used things (like ADVENTURE_TIER which changes with every new entity) to have an unique color.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #20 on: January 06, 2009, 07:39:45 am »

Also, how to make the spacing between lines smaller? They are spread too wide for me so it's hard to read.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

qwert

  • Bay Watcher
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #21 on: January 07, 2009, 04:26:32 pm »

I just edited the code, removing the varied font sizes, which I'm fairly sure is where you got the weird line spacing. If you don't mind, could you post your userDefineLang.xml when you figure out where to put things? I don't mod much, and would appreciate any insight of what works better color-to-tag-wise.
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #22 on: January 07, 2009, 08:31:20 pm »

I will think about it. The first thing I want to tell you that you shouldn't make every token in color. Yeah, it's cool to see that you've typed it right but if you looked at it from different point of you it gives you another color group for more important things if you left common things which are obvious out (since there're just 4 groups). I'll work on it.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Mohreb el Yasim

  • Bay Watcher
  • ♫♪♫♫♪♫♪♪♫♪
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #23 on: July 30, 2009, 05:21:50 pm »

To use it copy the following into "%appdata%/Notepad++/userDefineLang.xml" with normal
Where should it be? i can't find it (i looked mostly in the applications directory but haven't found it there ...
Logged
Mohreb el Yasim


GENERATION 24:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experime

qwert

  • Bay Watcher
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #24 on: July 30, 2009, 08:13:45 pm »

To use it copy the following into "%appdata%/Notepad++/userDefineLang.xml" with normal
Where should it be? i can't find it (i looked mostly in the applications directory but haven't found it there ...

Just copy and paste
Code: [Select]
%appdata%/Notepad++/ into windows explorer, it will automagically work. If the file isn't there, just make it.
Logged

ninja_danz0r

  • Escaped Lunatic
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #25 on: August 03, 2009, 12:07:05 am »

Noted a certain inconsistency regarding CRAFTSMAN_NAME token, as no other PROFESSION_[NAME] is highlighted.
They're listed here: http://dwarf.lendemaindeveille.com/index.php/Profession_tokens
Logged

Greiger

  • Bay Watcher
  • Reptilian Illuminati member. Keep it secret.
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #26 on: August 03, 2009, 10:46:23 am »

Awesome.  This will get me using notepad++ again.

Vista refuses to let me access the documents and settings folder (access denied) even as an administrator.  But typing in that shortcut worked and creating the xml file and adding the code at the location it dumped me worked.

After using the shortcut it sent me to "C:\Users\Admin\AppData\Roaming\Notepad++"  That seems to be where it goes in vista.  Notepad++ recognizes DF raw files properly and doesn't seem to have any issues.

if in doubt that %appdata%/Notepad++/ shortcut you gave works too, though it didn't work with the filename at the end because it didn't exist yet. That might work better if any of these folders can have different names under different setups.

[vista_rant]
It might also be relevant that I put the notepad++ outside of program files.  The Program Files folder in vista is so convoluted with special case programming it's ridiculous.  I have yet to have a program I installed in that folder work properly, because vista babysits every file operation that takes place in there. And god forbid I actually manage to save something to that folder from within a program, it cuts the file and sticks it somewhere else without telling you it's doing it, or where the hell it's putting it.  Yer just expected to know. Good luck finding it again.[/vista_rant]
« Last Edit: August 03, 2009, 11:11:43 am by Greiger »
Logged
Disclaimer: Not responsible for dwarven deaths from the use or misuse of this post.
Quote
I don't need friends!! I've got knives!!!

qwert

  • Bay Watcher
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #27 on: August 03, 2009, 11:53:16 am »

Noted a certain inconsistency regarding CRAFTSMAN_NAME token, as no other PROFESSION_[NAME] is highlighted.
They're listed here: http://dwarf.lendemaindeveille.com/index.php/Profession_tokens

I don't quite understand what you mean here, because all the tokens you linked are in the xml.
Logged

PTTG??

  • Bay Watcher
  • Kringrus! Babak crulurg tingra!
    • View Profile
    • http://www.nowherepublishing.com
Re: Notepad++ syntax highlighting for DF raws
« Reply #28 on: September 27, 2009, 02:05:26 pm »

Can creature tags be displayed in green instead of red? I say this because dark red and dark brown are virtually identical. In fact, dark blue and dark red may be a better pair.
Logged
A thousand million pool balls made from precious metals, covered in beef stock.

qwert

  • Bay Watcher
    • View Profile
Re: Notepad++ syntax highlighting for DF raws
« Reply #29 on: September 27, 2009, 06:20:14 pm »

Can creature tags be displayed in green instead of red? I say this because dark red and dark brown are virtually identical. In fact, dark blue and dark red may be a better pair.

Swapped them to green, then swapped the biome tags to teal since they were green originally. It should also automatically recognize txt files as DF raws, which shouldn't be a problem unless you use Notepad++ to view txt files normally. I put how to undo this in the first post.
Logged
Pages: 1 [2] 3