Edit, 07/2014 : I'm not into PI games modding anymore, and haven't updated this file since more than one year.
Talias released a more complete language file ( http://forum.paradoxplaza.com/forum...pad-user-defined-language-and-auto-completion ) with all recent commands, and more functionalities.
So I rather advise to use his version.
Anyway if for whatever reason you prefer to use my color coding model I keep it online, but be aware commands introduced in the 2013 and 2014 patches aren't in.
I've made a language file to have the keywords appear in color in notepad++ (free text editor you can download here).
Of course considering the huge number of commands in ck2 I can't guarantee it's complete, but at least the code look a little clearer.
Download the language file.
(1. Unzip the file to notepadd++ folder
2. In notepad click view and configure user defined language panel* then import UserDefineLang.xml
3. In language you should have a new one called ck2code)
Tip :
Due to a limitation of user made languages in notepadd++ the function highlighting the corresponding } when you have your cursor on a { doesn't work when they are defined as block opener/closer in an user defined language.
So if you want to use the highlighting to verify your {}, configure the language and remove them as block opener/closer (then you lose the ability to close blocks, but gain the highlighting).
Version 2.1 :
Added most new keywords since patch 1.6.
Added localisation keywords (but it doesn't work well, as notepadd don't recognize them if there is no space around ; a possibility would be to set them as prefix, but then it colors the following text too, and that creates problem in other files because some commands use the same beginning words).
Talias released a more complete language file ( http://forum.paradoxplaza.com/forum...pad-user-defined-language-and-auto-completion ) with all recent commands, and more functionalities.
So I rather advise to use his version.
Anyway if for whatever reason you prefer to use my color coding model I keep it online, but be aware commands introduced in the 2013 and 2014 patches aren't in.
I've made a language file to have the keywords appear in color in notepad++ (free text editor you can download here).
Of course considering the huge number of commands in ck2 I can't guarantee it's complete, but at least the code look a little clearer.
Download the language file.
(1. Unzip the file to notepadd++ folder
2. In notepad click view and configure user defined language panel* then import UserDefineLang.xml
3. In language you should have a new one called ck2code)
Tip :
Due to a limitation of user made languages in notepadd++ the function highlighting the corresponding } when you have your cursor on a { doesn't work when they are defined as block opener/closer in an user defined language.
So if you want to use the highlighting to verify your {}, configure the language and remove them as block opener/closer (then you lose the ability to close blocks, but gain the highlighting).
Version 2.1 :
Added most new keywords since patch 1.6.
Added localisation keywords (but it doesn't work well, as notepadd don't recognize them if there is no space around ; a possibility would be to set them as prefix, but then it colors the following text too, and that creates problem in other files because some commands use the same beginning words).
Last edited: