User Tools

Site Tools


prpl:prpltutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
prpl:prpltutorial [2018/07/20 09:36] – fixed typos builder17prpl:prpltutorial [2023/10/18 15:53] (current) – adding notepad disclaimer Bob
Line 52: Line 52:
 === Setting up the text editor === === Setting up the text editor ===
  
-This step is entirely optional, but can make it much easier to write scripts. Essentially, Notepad++ is a common text editor for writing in unusual languages, and there's an easy way to get it to recognise PRPL.+This step is entirely optional, but can make it much easier to write scripts. Essentially, Notepad++ is a common text editor for writing in unusual languages, and there's an easy way to get it to recognize PRPL.
  
 You may have seen a different text editor when editing the script, and almost definitely you didn't see the "Hello world!" text colored blue like that. That is called syntax highlighting and is very useful to quickly determine the type of command by color. You may have seen a different text editor when editing the script, and almost definitely you didn't see the "Hello world!" text colored blue like that. That is called syntax highlighting and is very useful to quickly determine the type of command by color.
  
-To set it up like this, first download the Notepad++ editor from [[https://notepad-plus-plus.org/download/v7.5.1.html|their website]] and install it. After that, make sure that Notepad++ is the default editor for .prpl files. Just create an empty file named "abc.prpl" anywhere and right-click it -> Properties -> General -> Opens with ... -> Change -> Select Notepad++ -> OK. After that, your prpl scripts should open in Notepad++ when you click "Edit" in the map editor.+To set it up like this, first download the Notepad++ editor from [[https://notepad-plus-plus.org/download/v7.5.1.html|their website]] and install it.<note>Make sure you download only from the official Notepad++ website to avoid malware. https://notepad-plus-plus.org/</note> After that, make sure that Notepad++ is the default editor for .prpl files. Just create an empty file named "abc.prpl" anywhere and right-click it -> Properties -> General -> Opens with ... -> Change -> Select Notepad++ -> OK. After that, your prpl scripts should open in Notepad++ when you click "Edit" in the map editor.
  
 Next, let's set up the syntax highlighter, because we like pretty colors. Go [[https://knucklecracker.com/forums/index.php?topic=21453.0|here]] and download the prpl-syntax.xml attachment file anywhere. Next, open your Notepad++ and go to Language -> Define your language -> Import -> (select the downloaded prpl-syntax.xml file) -> Open -> (close the language window). It should then change the highlighting of the file. If not, try restarting Notepad++ or selecting the language manually from the Language menu. Next, let's set up the syntax highlighter, because we like pretty colors. Go [[https://knucklecracker.com/forums/index.php?topic=21453.0|here]] and download the prpl-syntax.xml attachment file anywhere. Next, open your Notepad++ and go to Language -> Define your language -> Import -> (select the downloaded prpl-syntax.xml file) -> Open -> (close the language window). It should then change the highlighting of the file. If not, try restarting Notepad++ or selecting the language manually from the Language menu.
prpl/prpltutorial.txt · Last modified: 2023/10/18 15:53 by Bob