Minecraft Blogs / Tutorial

Command Block Syntax Highlighter for Notepad++

  • 5,413 views, 0 today
  • 23
  • 15
  • 18
Headaxe's Avatar Headaxe
Level 55 : Grandmaster Technomancer
421
Command Block Syntax Highlighter for Notepad++
+an Installation Tutorial for Notepad++ Languages

Command Block Syntax Highlighter for Notepad++

Hello, folks!
Recently, I created a syntax highlighter/language definition for Notepad++ which many of you might enjoy.
Well, I might not be the first one to do this, however I added quite nice coloring aswell as nice features like using "<" and ">" to collapse text in order to keep it organized.

I will first present you my concept and then give you a tutorial for installation of languages in Notepad++. (This is a tutorial blog after all)


LIST OF FEATURES
Command Highlighting
undefined
Correctly spelled commands get a purple color.
This way you can see mistakes and mispelled command easily and you also get a sense of orientation inside your text files.

Selector Highlighting
undefined
Selectors get a blue color, which helps you distinguish them from the rest of the command.
In addition to that, numbers inside selectors stand out even more due to the blue-red contrast.
(NBT Tags get aqua highlighting)

Comments and collapsable text

You can create comments which are always being displayed in green using "#".
Also, you are able to start collapsable text using "<", to close the text simply use ">".
This feature is incredibly useful for keeping your text organized and for adding categories and functions that are supposed to be hidden.

Number Highlighting
undefined
Quite often when working with command blocks, you will copy and paste the same command over and over and just change one number.
Number Highlighting makes it much easier to focus on these important things that have to be changed and helps you seeing the difference between two nearly identical commands.

String Highlighting
undefined
Strings get an orange highlighting.
Inside strings, tags, selectors, numbers, operators and more all have the same color, which makes them stand out of the rest and which suggests that all characters inside are part of the string.
Operator Highlighting
Operators such as "~" "=" "/" and more have a dark blue highlighting which also helps you seperate them from the rest of the text.
 

INSTALLATION GUIDE
Since this is a tutorial blog, I'll now also give you a tutorial for the installation of languages for Notepad++.

1. Notepad++ uses .xml files for loading language definitions into the system.
First download the file and save it somewhere on the computer, where you can access it later on.

2. Now open up Notepad++ and open the rider "Language".
You'll see a list of already existing languages and the option "Define your Language".
Click on that option.
View Image
undefined

3. Now click on "Import..." in the window that popped up and search for the file, you saved earlier on on your computer.
View Image
undefined

4. After successfully importing the language and saving it in Notepad++. you can activate it in your language options when you open up a file.
From then on, Notepad++ will associate the file with your language, so you don't have to set your language whenever you open the file.

(If you are already experienced, you can change settings such as colors inside the "User Defined" window to personalize the highlighting.
If you find any kind of highlighting errors or other bugs, please report them to me)


undefined
CreditHeadaxe
Tags

Create an account or sign in to comment.

zbigdogz
07/24/2019 9:39 pm
Level 19 : Journeyman Engineer
zbigdogz's Avatar
is this still available? the download link is broken
1
McJoeGames
10/09/2019 2:40 pm
Level 27 : Expert Miner
McJoeGames's Avatar
i got the same problem
1
Zampone
05/08/2016 8:50 pm
Level 1 : New Miner
Zampone's Avatar
Thank you for this.

Is there a version for editing books as well?
1
ToadieOdie
11/27/2015 5:55 pm
Level 54 : Grandmaster Goblin
ToadieOdie's Avatar
OMG!!!!! *tackleglomps* I love Notepad++ and this just made my day! lol I can't believe I haven't found this sooner. Thank you so much for putting this together and sharing it! <3
1
Headaxe
11/27/2015 5:56 pm
Level 55 : Grandmaster Technomancer
Headaxe's Avatar
No problem, thanks for the feedback :D
1
TerraScript
06/04/2015 11:01 am
Level 31 : Artisan Engineer
TerraScript's Avatar
I LOVE YOU.
1
Headaxe
06/04/2015 2:13 pm
Level 55 : Grandmaster Technomancer
Headaxe's Avatar
I love you too... *hugs*
1
Zatharel
06/03/2015 3:49 pm
Level 50 : Grandmaster Sweetheart
Zatharel's Avatar
oooh quite useful.
1
Horwitz1011
06/03/2015 11:42 am
Level 31 : Artisan Robot
Horwitz1011's Avatar
Wow, this is so helpful...  Is this windows only?
1
Headaxe
06/03/2015 3:23 pm
Level 55 : Grandmaster Technomancer
Headaxe's Avatar
Every OS that can run Notepad++ can also use this language definition.
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome