Skip to content
zumbak04 edited this page Nov 20, 2019 · 3 revisions

Hello! Most developers use Notepad++, so here we will talk about a couple of tricks in it.

Settings

Importrant! Click on the Settings menu, hit Preferences... and find New Document. Make sure you use the settings like on the screenshot above!

Settings

CK2 Language

There's a custom Notepad++ language Warcraft-Guardians-of-Azeroth\coder_resources\CK2 Language.xml. It's very desirable to install it. This will highlight the syntax of CK2, and it will allow you to use Right Click > Toggle Single Line Comment, Block Comment and Block Uncomment functions to comment out multiple lines. It also enables such functions as View > Unfold All, Fold All, Collapse Current Level etc. To install:

  1. Open Notepad++ and open the Define Your Language tool in the Language menu.
  2. Click Import and select theWarcraft-Guardians-of-Azeroth\coder_resources\CK2 Language.xml file.
  3. Make sure you hit Save As in the Define Your Language tool. Type anything you want as the name, it isn't important.
  4. Select the new language in the Language menu.
  5. Open the Settings menu, hit Style Configurator.
  6. In the Select theme: menu, select Obsidian and click Save & Close.

Note: if after restarting Notepad++, the font has changed (the letters has become smaller). Do the 5 and 6 steps again by selecting another theme and back.

Commenting Out Multiple Lines

Many don't know, but Notepad++ allows commenting out of multiple lines. To use it you must install CK2 Language.xml. Select a few lines, Right Click and hit...

  • Toggle Single Line Comment to comment out, if the selected lines aren't commented out, or to uncomment, if the selected lines are commented out.
  • Block Comment to comment the selected lines out.
  • Block Uncomment to uncomment the selected lines.

Folding, Unfolding and Collapsing

Notepad++ allows hiding of large blocks of the script. To use it you must install CK2 Language.xml. These fuctions are located in the View menu, starting from Fold All to Uncollapse Level. Try them! Also, I would recommend to remember the hotkeys, these commands are very frequently used.

Clone this wiki locally