Difference between revisions of "Atom Setup"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Gawdl3y
imported>Gawdl3y
Line 2: Line 2:


== Syntax highlighting and snippets ==
== Syntax highlighting and snippets ==
Syntax highlighting for Papyrus and Papyrus assembly is provided by the [https://github.com/Gawdl3y/atom-language-papyrus language-papyrus] package. To install it, follow these instructions:
Syntax highlighting for Papyrus and Papyrus assembly is provided by the [https://atom.io/packages/language-papyrus language-papyrus] package. To install it, follow these instructions:


=== Method 1 ===
=== Method 1 ===
Line 11: Line 11:


== Quick compile ==
== Quick compile ==
Obtain the [https://github.com/noseglid/atom-build 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.
Obtain the [https://atom.io/packages/build 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.
<pre>{
<pre>{
"cmd": "Papyrus Compiler\\PapyrusCompiler.exe",
"cmd": "Papyrus Compiler\\PapyrusCompiler.exe",

Revision as of 14:03, 15 September 2014

Atom is a new open-source text editor that is currently in an open alpha stage. 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