Skip to content
Kapiainen edited this page Apr 19, 2016 · 5 revisions

SublimePapyrus

A Sublime Text 2 and 3 package for the Papyrus scripting language.

Features

Syntax highlighting

Characters and groups of characters are highlighted in different colors based on their function within the source (type name, operator, keyword, literal, function/event name, etc.).

Linting

The linter can validate a script's source on three different levels (lexical, syntactic, and semantic analysis) and highlight lines that contain invalid code.

SublimePapyrus includes linters for the versions of Papyrus that shipped with the following games:

  • The Elder Scrolls V: Skyrim

Code completion

SublimePapyrus offers two options for getting code completion:

  • A command for generating static completions for known types (the names of scripts), functions, and events.
  • A system that uses the cached results of the linter to dynamically generate completions for known types, functions, events, variables, properties, parameters, etc. in a context-aware manner.

Tooltips (Currently only available in the tooltip branch.)

Tooltips are used to show relevant information. Currently supported tooltips:

  • Functions/event parameters while editing a function/event call.

Build systems

The build system framework supports compilation of a single file, batch compilation, and invoking the compiler with custom arguments.

Examples

Above is an example of what the syntax highlighting, dynamic code completion, and tooltips look like in action. The Moka Dark theme is used in the GIF above.