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. 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.
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.
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.
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
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?