Difference between revisions of "Sublime Text"

198 bytes added ,  10:12, 18 August 2019
m
changed user home directory in the previous edit to the proper variable used by the Python scripts
imported>Kicoax
m (Swapped order of categories)
imported>Nemesis
m (changed user home directory in the previous edit to the proper variable used by the Python scripts)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Text Editors]]
'''Sublime Text''' is an extensible text-editor with a robust package system based on Python that makes it very flexible.
[[Category:Scripting]]
Sublime Text is [https://www.sublimetext.com/buy not free software], but offers an unlimited and unrestricted evaluation version.
'''Sublime Text''' is a proprietary, extensible text-editor. It is not free software ($70 USD at the time of this writing), but offers a trial version. It can be purchased or trialled from the [https://www.sublimetext.com official website]. Sublime Text has a robust package system based on Python that makes it very flexible.
It can be purchased or evaluated on the [https://www.sublimetext.com official website].  
[[Atom]] is a free, open-source alternative.


{{See Wikipedia}}
{{See Wikipedia}}
Line 14: Line 13:
#Download [[File:PapyrusF4.zip]]
#Download [[File:PapyrusF4.zip]]
#Extract the zip file to <code>%APPDATA%\Sublime Text 2\Packages</code> directly - or extract it somewhere else and drag in the PapyrusF4 folder to the packages folder.
#Extract the zip file to <code>%APPDATA%\Sublime Text 2\Packages</code> directly - or extract it somewhere else and drag in the PapyrusF4 folder to the packages folder.
#*If you installed Sublime Text 3, the location is <code>%APPDATA%\Sublime Text 3\Data\Packages</code> instead
#*If you installed Sublime Text 3, the location is <code>%APPDATA%\Sublime Text 3\Packages</code> instead


====If no previous Papyrus plugin====
====If no previous Papyrus plugin====
#In Sublime, right-click and select PapyrusF4 -> Create default INI file
#In Sublime, press CTRL + SHIFT + P to type the command: "PapyrusF4" -> PapyrusF4 INI: Create default INI file. This will create the file <code>%USERPROFILE%\Documents\SublimePapyrusF4.ini</code> and open it in the editor.
#Make the following changes:
#Make the following changes:
#*Point "scripts=" at your script ''source'' folder
#*Point "scripts=" at your script ''source'' folder
Line 101: Line 100:


===Assembling and Disassembling Papyrus PEX files===
===Assembling and Disassembling Papyrus PEX files===
If you open a PEX file in Sublime it will show up as a binary file. If you set the "syntax" (via the View menu) to "Compiled PapyrusF4" and hit "Build", Sublime with disassemble the PEX file for you into a PAS file which will then be auto-opened in Sublime with proper syntax coloring.
If you open a PEX file in Sublime it will show up as a binary file. If you set the "syntax" (via the View menu) to "Compiled PapyrusF4" and hit "Build", Sublime will disassemble the PEX file for you into a PAS file which will then be auto-opened in Sublime with proper syntax coloring.


Note that the PEX file needs to be in an "output" folder specified in the ini file for this to work.
Note that the PEX file needs to be in an "output" folder specified in the ini file for this to work.
Line 108: Line 107:


Note that the normal script compiler will delete the PAS file if it is found, so if you want to keep it, make a copy.
Note that the normal script compiler will delete the PAS file if it is found, so if you want to keep it, make a copy.
==See Also==
*[[:Category:Text Editors|Other Text Editors]]
[[Category:Text Editors]]
[[Category:Scripting]]
[[Category:Tooling]]
Anonymous user