User:Equazcion/WikiTemplate UDL

{{talkheader}} being edited with WikiTemplate UDL

WikiTemplate UDL is an add-on for Notepad++ that can aid in Wikipedia template development by providing brace balancing and syntax highlighting for MediaWiki template code. Due to the repetitive nature of wiki template code, the highlighting was designed to exaggerate its code features and make code blocks more recognizable at a glance.

To use this, you will first need to install Notepad++, which is free. Once it's installed, do the following:

  1. Download or copy the complete code from here and paste it into a new text file called WikiTemplate.xml.
  2. Open Notepad++ and click the Language menu, then "Define your language..."
  3. Click the "Import..." button, and select the WikiTemplate.xml file you created. Close the User Defined Language window.

Files you open or save with a .mwt extension should become recognized as WikiTemplate code and show the relevant highlighting. To get started, create a new Notepad++ document and save it as anything.mwt. Paste a section of template code into the window to see if it's working. Code should become highlighted live, as you paste or type.

  • If you still don't see the highlighting as shown in the image, click the Language menu again and select WikiTemplate, which should be at the very bottom of the menu.