Difference between revisions of "Sublime Text"

140 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>Mythweaver
(fixed "right click" when we just want to type a command instead)
imported>Nemesis
m (changed user home directory in the previous edit to the proper variable used by the Python scripts)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Text Editors]]
[[Category:Scripting]]
'''Sublime Text''' is an extensible text-editor with a robust package system based on Python that makes it very flexible.
'''Sublime Text''' is an extensible text-editor with a robust package system based on Python that makes it very flexible.
Sublime Text is [https://www.sublimetext.com/buy not free software], but offers an unlimited and unrestricted evaluation version.
Sublime Text is [https://www.sublimetext.com/buy not free software], but offers an unlimited and unrestricted evaluation version.
Line 15: 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, press CTRL + SHIFT + P and select "PapyrusF4" -> PapyrusF4 INI: 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 102: 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 112: Line 110:
==See Also==
==See Also==
*[[:Category:Text Editors|Other Text Editors]]
*[[:Category:Text Editors|Other Text Editors]]
[[Category:Text Editors]]
[[Category:Scripting]]
[[Category:Tooling]]
Anonymous user