Difference between revisions of "Atom Setup"
imported>Gawdl3y m |
imported>Gawdl3y m |
||
Line 25: | Line 25: | ||
"errorMatch": "\n(?<file>[A-Za-z0-9_:\\-\\.\\/ \\\\]+\\.(psc|PSC))\\((?<line>[0-9]+),(?<col>[0-9]+)\\)" | "errorMatch": "\n(?<file>[A-Za-z0-9_:\\-\\.\\/ \\\\]+\\.(psc|PSC))\\((?<line>[0-9]+),(?<col>[0-9]+)\\)" | ||
}</pre> | }</pre> | ||
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'''.<br /> | |||
If there are errors during compilation, clicking a filename in the build output window will take you directly to the spot in your code in which the error occurred. '''Ctrl-Alt-G''' will also jump between any errors. | If there are errors during compilation, clicking a filename in the build output window will take you directly to the spot in your code in which the error occurred. '''Ctrl-Alt-G''' will also jump between any errors. | ||
Revision as of 16:54, 22 October 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 "Install" tab on the side, 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": {}, "errorMatch": "\n(?<file>[A-Za-z0-9_:\\-\\.\\/ \\\\]+\\.(psc|PSC))\\((?<line>[0-9]+),(?<col>[0-9]+)\\)" }
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.
If there are errors during compilation, clicking a filename in the build output window will take you directly to the spot in your code in which the error occurred. Ctrl-Alt-G will also jump between any errors.
Language: | English |
---|