diff --git a/website/monarch.html b/website/monarch.html index 7880e7e0..b7b87ff8 100644 --- a/website/monarch.html +++ b/website/monarch.html @@ -383,6 +383,17 @@ tokenizer: { ],
Only when we find a matching end tag (outside a string), $1==$S2
, we pop the state and exit the embedded mode. Note that we need @rematch
since the editor is ignoring our token classes until we actually exit the embedded mode (and we handle the close tag again in the @root
state).
+
Monaco provides an Inspect Tokens
tool in browsers to help identify the tokens parsed from source code.
To activate:
+Developer: Inspect Tokens
optionThis will show a display over the currently selected token for its language, token type, basic font style and colors, and selector you can target in your editor themes.