Difference between revisions of "Sublime Text"

590 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 (Gawdl3y moved page Sublime Text Papyrus Plugin to Sublime Text: The page isn't just about the plugin; it contains general usage info about ST as well)
imported>Nemesis
m (changed user home directory in the previous edit to the proper variable used by the Python scripts)
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Category:Scripting]]
'''Sublime Text''' is an extensible text-editor with a robust package system based on Python that makes it very flexible.
[[Category:Text Editors]]
Sublime Text is [https://www.sublimetext.com/buy not free software], but offers an unlimited and unrestricted evaluation version.
It can be purchased or evaluated on the [https://www.sublimetext.com official website].
 
{{See Wikipedia}}
 
==Installation==
==Installation==
===Install Sublime===
===Install Sublime===
Line 9: 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 96: 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 103: 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