Code Monkey home page Code Monkey logo

vscode-glimmer's Introduction

vscode-glimmer

VSCode extension for glimmer js components.

Features

Syntax Highlighting

This extension adds syntax highlighting for embedded Glimmer templates in JavaScript and TypeScript. It supports two types of embedded template syntaxes:

  1. Template strings, using hbs to denote that they are Handlebars templates:

template strings demo

  1. Template tags, using a custom <template> syntax

template tag demo

It also adds support for the .gjs and .gts file extensions, which are aliases to JavaScript and TypeScript respectively.

Note: Syntax highlighting for handlebars requires installing the Handlebars VSCode extension

Developing

What's in the folder

  • package.json - this is the manifest file in which you declare your language support and define the location of the grammar file that has been copied into your extension.
  • syntaxes/inline-hbs.json - this is the Text mate grammar file that is injected into javascript and typescript languages.

Get up and running straight away

  • Press F5 to open a new window with your extension loaded.
  • Create a new file with a file name suffix matching either javascript or typescript.
  • Verify that syntax highlighting works and that the language configuration settings are working.

Make changes

  • You can relaunch the extension from the debug toolbar after making changes to the files in the extension.
  • You can also reload (Ctrl+R or Cmd+R on Mac) the VS Code window with your extension to load your changes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.