Community
    • Login

    Saving Style Tokens

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    styletoken style
    5 Posts 3 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • User123413467457U
      User123413467457
      last edited by

      Im sure this has been asked already but I couldnt find specifically what I was looking for. I want to save the style tokens I add to a doc so the next time I open it, everything is still color coded. For context I’m not coding anything, just color coding text to make this easier to look at. I’ve seen work arounds involving bookmarks and other ways to mark things but nothing that straight up saves the colors you put on text.
      styleTokenHelp.jpg

      side note:
      For anyone who plays this game, i know this is all on the wiki but i hate having to go to 3 different pages to find enemy armor, armor weakness, and how to get that damage type so i put it all in one spot lol. Also also i just find it simpler to have a notepad file open on the second monitor rather than a .docx. Sorry if this was a weird post, but it couldnt hurt to ask.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @User123413467457
        last edited by PeterJones

        @User123413467457 said in Saving Style Tokens:

        Im sure this has been asked already but I couldnt find specifically what I was looking for. I want to save the style tokens I add to a doc so the next time I open it, everything is still color coded.

        You’re right: it has been talked about, multiple times. I found this discussion which included a script for the PythonScript plugin, plus links to at least three other related topics. If you read that discussion, you will learn more about the scripting solution.

        However, for yours, since I’m guessing that the keywords you want to highlight stay the same from time to time, and you probably want them highlighted even when the config for you game has been changed, I would suggest a UDL (“User Defined Language”). I know you said you’re “not coding anything” – but config files can be syntax highlighted just like programming languages or markup languages, and UDL is not limited to “coding”.

        The UDL system allows 8 different keyword groups, so you could easily put your keywords into eight different colors. If your config file has a unique extension, you can just add that extension to the UDL, so it will automatically apply the UDL when you load the file. Otherwise, you can manually select Language > GameConfigFileUDLName to get it to do all the highlighting.

        Using the UDL would probably be easier for you than trying to figure out how to use the scripting solution provided in that other discussion.

        Good luck.

        User123413467457U 1 Reply Last reply Reply Quote 3
        • User123413467457U
          User123413467457 @PeterJones
          last edited by

          It worked great I really appreciate the help. Last question, If I were to send this file to a friend would it send it with the UDL or would I have to do that separately? I have the UDL and this file using a custom extension, idk if that helps you at all. Thank you

          EkopalypseE PeterJonesP 2 Replies Last reply Reply Quote 0
          • EkopalypseE
            Ekopalypse @User123413467457
            last edited by

            @User123413467457

            To make it look the same to others as it does to you, they have to use the same UDL and more or less the same theme.
            So you need to send it to them or make it publicly available somehow.
            Here is described how to export and import UDLs.

            1 Reply Last reply Reply Quote 3
            • PeterJonesP
              PeterJones @User123413467457
              last edited by PeterJones

              @User123413467457 said in Saving Style Tokens:

              If I were to send this file to a friend would it send it with the UDL or would I have to do that separately?

              @Ekopalypse gave you the right answer. However, given the way you phrased that, and re-reading your original question, I think it might help you conceptually if you read this FAQ

              1 Reply Last reply Reply Quote 2
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors