=[[Overview|]]
====== Creating and Editing 4RPL Scripts ======
Lot of stuff here [[cw4:tutorials:file association]] needs reconciling
Any plaintext editor (such as Notepad) can be used. Avoid using word processing apps such as WordPad, Word, or LibreOffice, as these would typically add metadata to the text that corrupts the file. Editors such as [[https://notepad-plus-plus.org/|Notepad++]]((Follow the link to download Notepad++)) can assist with syntax highlighting, auto-completion, formatting, and indentation.
Make sure you download only from the official Notepad++ website to avoid malware. https://notepad-plus-plus.org/
:!: It is highly recommended that you download and install Notepad++ before you open a 4RPL file to ensure that the correct file association is established. If you have already established a file association, see below for instructions on how to change file associations.
Once you have Notepad++ installed, when you click any Edit button in the CW4 Console or Package Manager, Windows will present a dialog. Click "More Apps"
[{{4rpl_edit.png?450}}]
\\
Now again, choose "Look for another App"
[{{4rpl_associate.png?450}}]
Now navigate the the NotePad++ folder and select the program.
[{{associate_dialog.png?450}}]
this text needs to be expanded and prettified.
https://www.lifewire.com/how-to-change-file-associations-in-windows-2624477
also can do from N++ menus if N++ is opened in Administrator mode.
=> Settings/Preferences/File Association
[{{n_association.png?450}}]