Difference between revisions of "Atom Setup"
imported>Gawdl3y |
imported>Gawdl3y |
||
Line 1: | Line 1: | ||
Atom is | Atom is an open-source, highly-extensible text editor based on Chromium and Node.js. It was created and is being actively developed by the GitHub team. It can be downloaded from the [https://atom.io/ official Atom site]. Atom has an extremely flexible package system that allows customization of virtually everything about the editor. | ||
== Syntax highlighting and snippets == | == Syntax highlighting and snippets == |
Revision as of 19:14, 7 July 2015
Atom is an open-source, highly-extensible text editor based on Chromium and Node.js. It was created and is being actively developed by the GitHub team. It can be downloaded from the official Atom site. Atom has an extremely flexible package system that allows customization of virtually everything about the editor.
Syntax highlighting and snippets
Syntax highlighting for Papyrus and Papyrus assembly is provided by the language-papyrus package. To install it, follow these instructions:
Method 1
Open the settings tab (File -> Settings, or Ctrl + Comma), select the packages section, and search for "language-papyrus". When the results appear, click "Install" on the package.
Method 2
Run apm install language-papyrus
in a command prompt.
Quick compile
Obtain the build package the same way as above. Then, place the below text in a file called .atom-build.json (yes, with the leading dot!) in your Skyrim\Data\Scripts\Source directory. Change the path in the cwd setting if you need to (make sure to use double-backslashes). If you don't have the DLC, just remove them from the -import= argument.
{ "cmd": "Papyrus Compiler\\PapyrusCompiler.exe", "cwd": "C:\\Program Files (x86)\\Steam\\SteamApps\\common\\Skyrim\\", "sh": false, "args": [ "{FILE_ACTIVE}", "-import=Data\\Scripts\\Source;Data\\Scripts\\Source\\Dawnguard;Data\\Scripts\\Source\\Dragonborn;Data\\Scripts\\Source\\Hearthfire", "-output=Data\\Scripts", "-flags=TESV_Papyrus_Flags.flg" ], "env": {} }
After placing the .atom-build.json file there, any of the scripts you open in Atom will be able to be compiled simply by pressing Ctrl-Alt-B.
Language: | English |
---|