Difference between revisions of "Sublime Text"
m
changed user home directory in the previous edit to the proper variable used by the Python scripts
imported>Kicoax (Added Wikipedia link) |
imported>Nemesis m (changed user home directory in the previous edit to the proper variable used by the Python scripts) |
||
(8 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
'''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 | It can be purchased or evaluated on the [https://www.sublimetext.com official website]. | ||
{{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 | #*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, | #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 | 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]] |