Editing Sublime Text
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
'''Sublime Text''' is | [[Category:Scripting]] | ||
[[Category:Text Editors]] | |||
It can be purchased or | '''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. | ||
[[Atom]] is a free, open-source alternative. | |||
{{See Wikipedia}} | {{See Wikipedia}} | ||
Line 13: | Line 14: | ||
#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\Packages</code> instead | #*If you installed Sublime Text 3, the location is <code>%APPDATA%\Sublime Text 3\Data\Packages</code> instead | ||
====If no previous Papyrus plugin==== | ====If no previous Papyrus plugin==== | ||
#In Sublime, | #In Sublime, right-click and select PapyrusF4 -> Create default INI file | ||
#Make the following changes: | #Make the following changes: | ||
#*Point "scripts=" at your script ''source'' folder | #*Point "scripts=" at your script ''source'' folder | ||
Line 100: | Line 101: | ||
===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 with 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 107: | Line 108: | ||
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. | ||