1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Dialogue syntax highlighting for notepad

Discussion in 'Tutorials' started by recreation, Jan 28, 2013.

  1. recreation

    recreation Potential Patron

    Joined:
    Nov 2, 2011
    Messages:
    33
    Likes Received:
    0
    Not really a tutorial but i guess it helps alot with creating dialogues:

    I made a simple syntax highlighting script for SDT dialogues for the notepad.
    I didnt spend much time testing it because of the lack of time but i guess it works fine so far...
    To include it into the notepad just open a dialogue (or create a new 1) with the notepad, select "Language" -> "Define own language" -> "Import" and import the xml file.
    For more info about the syntax highlighting look at the example-sceen.
    The rest should be self explanatory.
    If someone experience some bugs, has any questions or suggestions just tell me.
    [​IMG]

    [attachmini=1]
     

    Attached Files:

    • SDT.xml
      File size:
      6.5 KB
      Views:
      280
  2. LoboLascivo

    LoboLascivo Potential Patron

    Joined:
    Apr 29, 2013
    Messages:
    21
    Likes Received:
    1
    It's a nice idea, thanks!
     
  3. Pim_gd

    Pim_gd Swell Supporter

    Joined:
    Jan 25, 2013
    Messages:
    719
    Likes Received:
    47
    Updated this file to work... "better".

    Recommend you use DialogueChecker prior to uploads, though - this is messy as fuck and Notepad++ User defined languages are really wonky.

    Please make sure you have Notepad++ v6.5.2 or later.
     

    Attached Files:

  4. Spinner

    Spinner Potential Patron

    Joined:
    Apr 28, 2015
    Messages:
    56
    Likes Received:
    0
    Great work Pim_gb. I have been using a (slightly modified) version of SDTLoader.xlm and it has made everything so much easier... :)

    As an side (given my experience), I'm a little surprised this post is so dated... :o
     
  5. Pim_gd

    Pim_gd Swell Supporter

    Joined:
    Jan 25, 2013
    Messages:
    719
    Likes Received:
    47
    Post new one here if possible, I didn't know people really used it - I don't even use it myself, prefer regular notepad.
     
  6. Spinner

    Spinner Potential Patron

    Joined:
    Apr 28, 2015
    Messages:
    56
    Likes Received:
    0
    Re: Dialogue syntax highlighting for Notepad++

    As suggested by Pim_gd...

    These are my variants of Pim_gb's (previously recreation's) User-defined languages for editing SDT dialogues in Notpad++. I use two variants:
    • The one I use for my own code:
     

    Attached Files:

  7. Pim_gd

    Pim_gd Swell Supporter

    Joined:
    Jan 25, 2013
    Messages:
    719
    Likes Received:
    47
    Re: Dialogue syntax highlighting for Notepad++


    And that one works in-game how?

    It's nice to add it for the coloring, but it doesn't actually affect the lines...
     
  8. Spinner

    Spinner Potential Patron

    Joined:
    Apr 28, 2015
    Messages:
    56
    Likes Received:
    0
    Re: Dialogue syntax highlighting for Notepad++

    Ummm... yeas... I agree? ???
    Since it was defined in your original SDTLoader.xml, I adopted your approach... and now, I love it...!

    Correct me if I'm wrong but, as I understand it, as long as you don't put actual lines (i.e defined "master" lines or "triggered" lines), it doesn't matter much what you do for comments. And isn't the whole point of the user defined language simply to make it easier to read the code?

    Also... seems to pass kit muster in your dialog checker! :D

    Anyways... it works a treat for me and you suggested I post it... so, I did. ;)