Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>RustScriptNew to Visual Studio Code? Get it now.
RustScript

RustScript

Hans_g123

| (1) | Free
Syntax highlighting for the RustScript language (.rsx files)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

RustScript

Language support for RustScript — a compiled language that turns a single .rsx file into a self-contained HTML page.

Features

  • Syntax highlighting for .rsx files
  • File icon in the explorer and tabs
  • Bracket matching and auto-closing
  • Comment toggling (Cmd+/ / Ctrl+/)

What is RustScript?

RustScript is a compiled language with Python-like syntax that produces self-contained HTML pages — complete with embedded CSS and JavaScript. No framework, no bundler, no dependencies.

page {
    style {
        bg: "#0a0e17"
        fg: "#e5e7eb"
        font: "'Inter', sans-serif"
    }

    h1 "Hello, world!" {
        style { size: "2rem" weight: "700" }
    }

    p "Built with RustScript."
}

One file in, one file out.

Install the Compiler

curl -fsSL https://raw.githubusercontent.com/hansdevs/rustscript/main/install.sh | sh

Or visit the GitHub repo for more options.

Commands

Command Description
rustscript preview file.rsx Build and open in browser
rustscript serve file.rsx Dev server with live reload
rustscript build file.rsx Compile to HTML
rustscript run file.rsx Run logic in terminal

Links

  • GitHub
  • Documentation
  • Changelog
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft