ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Hyperscript

by gnat ST4

Hyperscript syntax highlighting for Sublime Text. (_hyperscript, HTMX)

Details

Installs

  • Total 120
  • Win 42
  • Mac 42
  • Linux 36
Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12
Windows 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Hyperscript for Sublime Text

Provides syntax highlighting for the Hyperscript (_hyperscript) language, both embedded in HTML and in a standalone file.

Hyperscript is the companion project of HTMX. A recommended alternative to Stimulus, Alpine.js, jQuery.

What is Hyperscript?

  • Event-oriented language.
  • Locality of Behaviour instead of verbose javascript modules.
  • Async transparency.
  • No long event chains / christmas trees.
  • Null safe.
  • Self-documenting natural syntax inspired by Hypertalk and AppleScript.
  • Saves a ton of code in components.

See: A First Look at Hyperscript

What is hyperscript / HTMX ?

Sample Highlighting

image (Color scheme: Invader Zim)

Installation

Option A (Package Control. 🙏🏻 Soon!): Preferences ➡️ Package Control ➡️ Install Package ➡️ Hyperscript ➡️ ENTER

Turn it on: View ➡️ Syntax ➡️ Hyperscript ➡️ HTML (Hyperscript)

Option B (Direct): Preferences ➡️ Browse Packages ... ➡️ cd User ➡️ Download and extract the latest.

Turn it on: View ➡️ Syntax ➡️ User or hyperscript-sublime or Hyperscript ➡️ HTML (Hyperscript)

Enjoy! 🙂 Find the community on the discord! Check out the Hyperscript Cheatsheet!

What is the relationship between HTMX and Hyperscript?

  • HTMX and Hyperscript are sibling projects.
  • They are designed to work well together, HTMX for server-interactions and Hyperscript for pure front-end interactions, but neither requires the other.

Highlighting enabled for…

Tag attributes supported:

  • _=""
  • hs=""
  • data-hs=""

Script tag:

  • <script type="text/hyperscript"></script>

Suggested Sublime Color Schemes

  • Invader Zim 🛸
  • Mariana (Built-in)
  • Monokai (Built-in)

Special Thanks

References