Page 1 of 2 12 LastLast
Results 1 to 20 of 24

Thread: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

  1. #1

    Default Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Introduction

    Edit: Now updated for scripts and traits.

    I wasn't sure if I should call this a tool or a resource, because it's like a resource for a tool

    Anyways, on topic... With this you can have syntax highlighting in Notepad++ for:

    • scripts (remastered)
    • export_descr_buildings.txt (original)
    • export_descr_character_traits.txt (remastered)
    • export_descr_advice.txt (original)

    In future I hope to add more files to the list, but this is it for now

    Btw, don't expect any miracles... It doesn't check the syntax of your files (there are other tools for that), but it does give colours if it recognizes something. So if you write a scripting command and the text remains black rather than turn to blue, you know you've made a spelling error or something. And it's simply easier to read the files.
    Oh, and for some syntaxes you can expand and collapse sections in a file. For EDB this can be done with every opening "{" bracket up to the corresponding "}". And for scripts this can be done for monitors, if statements, while loops etc...


    Installation / Usage

    1. For this you need to have notepad++ installed. It's a free to download text editing program, which uses tabs, so that if you open the program, it automatically opens a few files you were working on as well in those tabs. (And with this you can get syntax highlighting, YAY!)

    2. Browse to "...\AppData\Roaming\Notepad++\userDefineLangs" (type "%appdata%" in the windows search bar if you can't find it)

    3. Paste all .xml files out of the .zip from the download link.

    5. Start Notepad++.

    6. Set notepad++ in dark mode. The selected colours will work best then.

    7. Open one of the files you want to see the syntax for in Notepad++ and go to Syntaxis -> RomeTW xx.

    8. Your file should now have syntax highlighting


    Download

    DOWNLOAD v2.1


    Last edited by Pat89; November 16, 2022 at 03:23 PM.

  2. #2

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Nifty!

  3. #3

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Yes! very nifty! will this work for M2TW EDB and stuff?

  4. #4

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Thanks. Yes, you can use it for M2 as well, though it won't be complete... M2 is very similar to RTW, but it has far more options in all four files, which these highlighters do not yet recognize. Though later when I'm going to be more involved in M2, I will likely make version for that too.

  5. #5

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Hm, not sure if it's a problem with the tool/resource/whatever, incompatibility between that and my version of Notepad++ (ver. 5.8.6) or simple screw-up from my part, but every time I try to import the .xml files, I get an error message, the option to save my dump files and then a crash.






    Any ideas?
    Last edited by Aradan; December 31, 2010 at 05:35 AM. Reason: fixed verison typo

  6. #6

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    I'm using v5.8.6... So I guess that could be the issue

    PS: I added a new Step 5. Because the new imported syntaxes are only visible in the list after restarting.
    Last edited by Pat89; December 31, 2010 at 05:37 AM.

  7. #7

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Oops, typo above, that's the version I'm using too (latest).

  8. #8

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Hmm... I've double checked to make sure, but importing works fine for me

    I assume you've pressed this button:
    Attachment 130639

    (That's all you should have to do...)

  9. #9

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Yep. Weird... I'll reinstall Notepadd++ and see if it makes any difference.

  10. #10

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Ok, reinstalling did it, no idea why, but it works now and that's all that matters.


    Thx, Pat!

  11. #11

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Great

  12. #12
    Calisthenis of Dyrrachium's Avatar Senator
    Join Date
    Feb 2010
    Location
    I'm not entirely sure.
    Posts
    1,236

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Good work! +rep

    EDIT: I found "Styler Configurator" under "Settings", not "View" in v5.8.6.
    Last edited by Calisthenis of Dyrrachium; January 16, 2011 at 11:45 AM.
    Meh.

  13. #13
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    nice once again, does this work on m2tw?


    the syntax is the same (or very similar)...
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  14. #14
    chris10's Avatar Primicerius
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    3,239

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    thats pretty cool ...
    only little downside is that I dont seem to find the german counterpart for View -> Styler Configurator
    hence I can not install it
    If you have a moment can you make a screeny of the option and where it is located in the english version ?
    Sometimes the paths and names from an english version are totally different from a german version...I think thats has to do with the syntax of the language.

  15. #15
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,760
    Blog Entries
    3

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Its not under its under settings.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  16. #16

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    It really is under view for me:

    Attachment 133977

    Dutch: Beeld -> Syntax markering ontwerpen
    English: View -> Design syntax highlighting

    I think they moved it during some update then...

  17. #17
    chris10's Avatar Primicerius
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    3,239

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Quote Originally Posted by Sqυιd View Post
    Its not under its under settings.
    ...thnx...found it now !...

    Quote Originally Posted by PatricianS View Post
    It really is under view for me:
    Dutch: Beeld -> Syntax markering ontwerpen
    English: View -> Design syntax highlighting
    I think they moved it during some update then...
    you see ...just what I said...different language versions have things very often in different places...its because of the language syntax...

    anyway...thnx for the great tool and Squid for the quick help
    Last edited by chris10; January 17, 2011 at 11:19 AM.

  18. #18
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,760
    Blog Entries
    3

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Quote Originally Posted by PatricianS View Post
    It really is under view for me:

    Attachment 133977

    Dutch: Beeld -> Syntax markering ontwerpen
    English: View -> Design syntax highlighting

    I think they moved it during some update then...
    Weird I've got the english version and as I said its under settings. Its always been there as far back as I can remember. Maybe they have a different menu for the dutch version or something.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  19. #19

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Yes I think so... Thanks both for pointing out.

  20. #20
    chris10's Avatar Primicerius
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    3,239

    Default Re: Notepad++ Syntax highlighting (Script, EDB, EDCT, EDA)

    Quote Originally Posted by Sqυιd View Post
    Maybe they have a different menu for the dutch version or something.
    Maybe...I have it under settings as you said
    I use german version
    Notepad++ v.5.8.5 UNICODE

    but have just realized v 5.8.6 has been released on 20.12.2010
    Last edited by chris10; January 17, 2011 at 05:31 PM.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •