Skip to content

vscode-angular-html syntax highlighting ported to angular inline templates

License

Notifications You must be signed in to change notification settings

ghaschel/vscode-angular-html-inline

Repository files navigation

vscode-angular-html-inline

SemVer GitHub issues GitHub license NodeJS with Gulp Downloads Installs Version Known Vulnerabilities Commitizen friendly

Logo

Note: No theme will have the highlighting displayed in these images. For that effect, run the vscode-angular-html: Set legacy color customizations command from the command pallete and you're good to go.

Angular HTML Template Inline Syntax Highlighting

This plugin is a wrapper for vscode-angular-html and supports everything that said one does.

This plugin adds syntax highlighting for angular HTML template files in VS Code. It supports the angular syntax itself, HTML DOM events, SVG, XML (with DTD and namespaces support), emphasizes deprecated and obsolete tags and attributes usage according to the current status of HTML. Also supports custom colors for extra-matched scopes. See settings

Summary

General

Element differentiation (HTML/SVG/Custom/Angular)

The highlighting displayed in this specific section is not part of the legacy color customization, and can be achieved by changing vscode-angular-html - extension' settings.

See vscode-angular-html - Angular-specific list

See vscode-angular-html - HTML-specific list

See vscode-angular-html - SVG-specific list

See vscode-angular-html - PrimeNG-specific list

Element differentiation

Customizations

There are a ton of customizations available, and everything can be changed in vscode-angular-html - extension' settings.

Angular

Directives

Angular directives

Interpolations

Angular Interpolations

Control Flow

Angular Control Flow

Structural tags

See the vscode-angular-html - complete list

Angular Structural Tags

HTML

Doctype

Doctype

Comments

Comments

Entities

See the vscode-angular-html - complete list

HTML Entities

PrimeNG

See the vscode-angular-html - complete list

Prime NG Tags

Custom components

See vscode-angular-html - color-customization

Custom Component

DOM events

See the vscode-angular-html - complete list

DOM events

Generic attributes

Generic attributes

Style inline

Style inline

And with colorize support:

Style inline with colorize

See vscode-angular-html - colorize settings

Regex

Regex

Deprecated attributes

See the vscode-angular-html - complete list

Invalid attributes

Deprecated tags

See the vscode-angular-html - complete list

Deprecated tags

ARIA-prefixed attributes

See the vscode-angular-html - complete list

Aria attributes

Data attributes

Data attributes

SVG

Non-string attributes

See vscode-angular-html - SVG's non string attributes

Elements like stroke can benefit from the colorize settings as the style inline section.

SVG Processing

Deprecated tags

See the vscode-angular-html - complete list

SVG deprecated tags

Deprecated attributes

See the vscode-angular-html - complete list

SVG invalid attributes

XML

DTD, elements and attributes namespace

XML Processing

Stylesheet

XML Stylesheet

Style tags (CSS/SASS/PostCSS/SCSS/Stylus)

See vscode-angular-html - scripts and style MIME-types

See vscode-angular-html - linting tips

Every MIME-type shown in this section also will be highlighted in <link> elements

Every style tag in this section can also benefit from the colorize settings as the style inline section

CSS

Style tag

SCSS

The displayed highlighting is achieved via vscode-angular-scss and it fallbacks to the default one if not installed.

Style tag

LESS

Style tag

SASS

Style tag

Stylus

Style tag

PostCSS

The displayed highlighting is achieved via language-postcss and it may be replaced with another extension as soon as this merge is released in a new version of the plugin

Style tag

CSS Fallback

Style tag

Script tag (Javascript/Typescript/Coffeescript/Dart)

See vscode-angular-html - scripts and style mime-types

Javascript

Script tag

Typescript

Script tag

Coffeescript

Script tag

Dart

Script tag

Javascript fallback

Script tag

Link tags

Link tag

Theming

If you want to create a theme and support this extension, please checkout vscode-angular-html - theming docs

Translate

If you want to help translating this extension, please checkout the vscode-angular-html - localization docs

Changelog

See the changelog