Skip to content

Latest commit

 

History

History
251 lines (180 loc) · 8.31 KB

THEMING.md

File metadata and controls

251 lines (180 loc) · 8.31 KB

Custom Scope Names

This file aims to be used as a way to point out the extra-matched scopes for themes to be able to support them.

This extension also has support for specific themes when enabling custom colors customization, and as a fallback, it tries to generate a color-pallete based on the current theme. For the list of supported themes, please refer to supported themes.

Summary

General

Element differentiation (HTML/SVG/Custom/Angular)

Element differentiation

  • custom-component - html-template.tag.custom
  • div - html-template.tag.html
  • mat-accordion - entity.name.tag.html.ng
  • svg - html-template.tag.svg

Angular

Directives

Angular directives

  • General
    • = - punctuation.separator.key-value.html-template.ng
  • [binding]
    • [ - punctuation.definition.ng-binding-name.begin.html
    • binding - html-template.ng.attributes.input-binding.first-level
    • ] - punctuation.definition.ng-binding-name.end.html
  • @animationTrigger
    • @ - html-template.ng.attributes.animationtrigger.prefix
    • animationTrigger - html-template.ng.attributes.animationtrigger.variable
  • (click)
    • ( - punctuation.definition.ng-binding-name.begin.html
    • click - html-template.ng.attributes.event-handler
    • ) - punctuation.definition.ng-binding-name.end.html
  • [(binding)]
    • [( - punctuation.definition.ng-binding-name.begin.html
    • binding - html-template.ng.attributes.input-binding.first-level
    • )] - punctuation.definition.ng-binding-name.end.html
  • [(binding)]
    • [( - punctuation.definition.ng-binding-name.begin.html
    • binding - html-template.ng.attributes.input-binding.first-level
    • )] - punctuation.definition.ng-binding-name.end.html
  • [style.font-size.px]
    • [ - punctuation.definition.ng-binding-name.begin.html
    • style - html-template.ng.attributes.input-binding.first-level
    • font-size - html-template.ng.attributes.input-binding.second-level
    • px - html-template.ng.attributes.input-binding.third-level
    • ] - punctuation.definition.ng-binding-name.end.html
  • [@visibility]
    • [ - punctuation.definition.ng-binding-name.begin.html
    • @ - html-template.ng.attributes.input-binding.animationTrigger.prefix
    • visibility - html-template.ng.attributes.input-binding.first-level
    • ] - punctuation.definition.ng-binding-name.end.html
  • *ngFor
    • * - html-template.ng.attributes.prefix.sugar
    • ngFor - html-template.ng.attributes.suffix.sugar
  • ref-assignVariable$
    • ref- - html-template.ng.attributes.prefix.ref
    • assignVariable - html-template.ng.attributes.suffix.name
    • $ - html-template.ng.attributes.suffix.rxjs
  • let-col$
    • let- - html-template.ng.attributes.prefix.let
    • col - html-template.ng.attributes.suffix.name
    • $ - html-template.ng.attributes.suffix.rxjs
  • #templateVariable
    • # - html-template.ng.attributes.template.prefix
    • templateVariable - html-template.ng.attributes.template.variable`

Interpolations

Angular Interpolations

  • {{ - html-template.ng.interpolation.begin
  • |, ||, && - html-template.ng.expression.operator.logical
  • ., ?., !. - html-template.ng.expression.operator.navigator
  • +, -, /, *, % - html-template.ng.expression.operator.arithmetic
  • ==, === - html-template.ng.expression.operator.comparison
  • ?, : - html-template.ng.expression.operator.navigator
  • ??, & - html-template.ng.expression.operator.bitwise
  • }} - html-template.ng.interpolation.end

Control Flow

Angular Control Flow

  • @ - html-template.ng.control-flow.prefix
  • for, switch, if, [...] - html-template.ng.control-flow.keyword

PrimeNG

Prime NG Tags

  • p-calendar - entity.name.tag.html.primeng

NG Bootstrap

NG Bootstrap Tags

  • ngb-toast - entity.name.tag.html.ng-bootstrap

Kendo UI

Kendo UI Tags

  • kendo-editor - entity.name.tag.html.kendo

HTML

Doctype

Doctype

  • ! - html-template.ng.exclamation.doctype
  • DOCTYPE - html-template.ng.doctype
  • html - html-template.ng.attribute.doctype

Entities

HTML Entities

  • & - html-template.ng.entities.ampersand
  • ; - html-template.ng.entities.semicolon

DOM events

DOM events

  • onabort - html-template.ng.attributes.events

Generic attributes

Generic attributes

  • class - html-template.ng.attributes.generic

ARIA attributes

Aria attributes

  • aria- - html-template.ng.aria-attribute.prefix
  • sort - html-template.ng.aria-attribute.suffix

Data attributes

Data attributes

  • data- - html-template.ng.data-attribute.prefix
  • test - html-template.ng.data-attribute.suffix

SVG

Non-string attributes

SVG Processing

  • M202.35,163.64l-4.38-13.1h-2.13v-3.85h9.1v3.85h-1.82l2.05z" - html-template.ng.svg.path.commands

XML

DTD, elements and attributes namespace

XML Processing

DTD

  • <!ELEMENT DAY (DATE,(HOLIDAY|PROGRAMSLOT+)+)>
    • ! - html-template.ng.exclamation.dtd
    • ELEMENT - html-template.ng.dtd
    • DAY - html-template.ng.attribute.doctype
    • HOLIDAY - html-template.ng.qualifier.dtd
    • |, +, ?, * - html-template.ng.occurrence.dtd
  • <!ELEMENT BANNER (#PCDATA)>
    • #PCDATA - constant.language.dtd

Element Namespace

  • <li:book>
    • : - html-template.ng.tag.colon
    • book - html-template.ng.tag.suffix

Attribute Namespace

  • xmlns:list="listurl"
    • : - html-template.ng.attributes.colon
    • list - html-template.ng.attributes.suffix

Stylesheet

XML Stylesheet

  • ``type="text/xls"`
    • xls - html-template.ng.xmlStylesheet.language.identifier

Style tags

Style tag

  • type="text/css"
    • css - html-template.ng.style.language.identifier
  • lang="css"
    • css - html-template.ng.style.language.identifier

Script tags

Script tag

  • type="text/javascript"
    • javascript - html-template.ng.script.language.identifier
  • lang="javascript"
    • javascript - html-template.ng.script.language.identifier

Link tags

Link tag

  • type="image/x-icon"
    • x-icon - html-template.ng.link.myme-type