• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Countern

Recruit
19 Badges
Apr 28, 2020
7
5
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Dharma
  • Surviving Mars
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Common Sense
  • Mount & Blade: With Fire and Sword
  • Europa Universalis IV: El Dorado
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Darkest Hour
Previously, I used talias's UDL (User Defined Language) for CK2 but realized much later that it is out of date with the current Notepad++ and CK2 version as there are a lot of missing codes that can be highlighted and that the Auto-Complete no longer works after Notepad++ v7.6.2. So, I made my own from scratch and using keywords directly from the CK2 modding wiki.

Screenshots below shows: Auto-Complete and syntax highlighting.
udl_screenshot_1.png
udl_screenshot_2.png

Features:
  • Syntax highlighting for Properties, Conditions, Scopes, Commands, and Comments
  • Supports .txt, .gfx, .gui, and .csv
  • Up-to-date keywords for CK2 v3.3.3
  • Customizable colors for syntax highlighting
  • Auto-Completion of key words
Instructions:
Extract the "CK2Counter.zip" to a folder you can easily remember, recommended locations: Downloads, Documents, or Desktop
  • CK2Counter.xml
    1. Move this file to "...\Notepad++\autoCompletion"
      1. Make sure that the "Notepad++" folder contains the "notepad++.exe" and "autoComplete," if there are none then you either didn't install it or installed it elsewhere.
    2. Open Notepad++
    3. Open "Preferences" from Settings (Settings > Preferences)
    4. Navigate to "Auto-Completion"
    5. Check "Enable auto-completion on each input"
      1. Pick either "Word completion" or "Function and word completion" under "Enable auto-completion on each input"
    6. Start modding.
    7. OPTIONAL:
      • Enable these "Auto-Insert" options:
        • "
        • '
        • {
  • CK2CounterExport.xml
    1. Open Notepad++
    2. Open "User Defined Language" in (Language > User Defined Language > Define your language...)
    3. Ensure your "User language" is set to "User Defined Language" to avoid
    4. overriding other custom languages if you have any
    5. Click the "Import..." button
    6. Navigate to where you extracted the "CK2CounterExport.xml" to
    7. Open the file from the "Import..." button
Downloads:
Attached file, 1.0.0
 

Attachments

  • CK2Counter_1.0.0.zip
    30,2 KB · Views: 0
Last edited:
  • 1Like
Reactions:
I've kept talias' work up-to-date. You could have found my updated versions towards the end of the thread.
After reading your message, I went back to talias's thread and checked the most recent comments to finally discover your UDL. I looked around your files and thought that if I discovered your updated version sooner I would've saved time and effort into creating my own one since you've added a lot of things that are useful and adaptable.
 
I hope you at least learnt something about the game along the way. If you have any ideas for improvements, feel free to pass them along.
I'm still working on a fairly substantial new version and may as well create a thread when it's done, considering the number of changes and features I've added since I started working on it.
 
Last edited:
  • 1Like
Reactions:
I stumbled upon this thread from a few years back and found it really resonated with my current situation. I used to grapple with outdated plugins for CK2 in Notepad++ myself. It can be frustrating when tools lag behind updates. Back then, I remember relying on Notes Online for quick notes—it was a lifesaver during those modding sessions. Creating your own UDL from scratch sounds like a great solution to keep things current and efficient.
 
Last edited: