Skip to content

SublimeText/Astro

Repository files navigation

Astro

Astro syntax definitions for Sublime Text based on its HTML, Markdown and JSX syntaxes.

Installation

Package Control

The easiest way to install is using Package Control. It's listed as Astro.

  1. Open Command Palette using ctrl+shift+P or menu item Tools → Command Palette...
  2. Choose Package Control: Install Package
  3. Find Astro and hit Enter

Manual Install

  1. Download appropriate Astro-2.0.0-st4xxx.sublime-package for your Sublime Text build.
    The st4xxx suffix denotes the least required ST build for the sublime-package to work.
  2. Rename it to Astro.sublime-package
  3. Copy it into Installed Packages directory

To find Installed Packages...

  1. call Menu > Preferences > Browse Packages..
  2. Navigate to parent folder

Requirements

  • Astro 2.0.0 requires Sublime Text 4126+
  • When running on Sublime Text 4134+ Astro dynamically uses MarkdownEditing's Markdown syntax if present and falls back to ST's default Markdown otherwise.
  • Syntax highlighting in <style> tags is powered by 3rd-party packages
  • Intellisense features are provided by LSP and LSP-astro.