File: mhtml-ts-mode.el.html

This package provides mhtml-ts-mode which is a major mode for editing HTML files with embedded JavaScript and CSS. Tree Sitter is used to parse each of these languages.

Please note that this package requires html-ts-mode, which registers itself as the major mode for editing HTML.

This package is compatible and has been tested with the following tree-sitter grammars:
* https://github.com/tree-sitter/tree-sitter-html
* https://github.com/tree-sitter/tree-sitter-javascript
* https://github.com/tree-sitter/tree-sitter-jsdoc
* https://github.com/tree-sitter/tree-sitter-css

Features

* Indent
* Flymake
* IMenu
* Navigation
* Which-function
* Tree-sitter parser installation helper

Defined variables (18)

mhtml-ts-mode--flymake-processStore the Flymake process.
mhtml-ts-mode--js-css-indent-offsetInternal copy of ‘mhtml-ts-mode-js-css-indent-offset’.
mhtml-ts-mode--prettify-symbols-alistAlist of symbol prettifications for various supported languages.
mhtml-ts-mode--treesit-aggregated-outline-predicateSettings for ‘treesit-aggregated-outline-predicate’.
mhtml-ts-mode--treesit-aggregated-simple-imenu-settingsSettings for ‘treesit-simple-imenu’.
mhtml-ts-mode--treesit-defun-type-regexpSettings for ‘treesit-defun-type-regexp’.
mhtml-ts-mode--treesit-font-lock-feature-listSettings for ‘treesit-font-lock-feature-list’.
mhtml-ts-mode--treesit-thing-settingsSettings for ‘treesit-thing-settings’.
mhtml-ts-mode-abbrev-tableAbbrev table for ‘mhtml-ts-mode’.
mhtml-ts-mode-css-fontify-colorsWhether CSS colors should be fontified using the color as the background.
mhtml-ts-mode-hookHook run after entering ‘mhtml-ts-mode’.
mhtml-ts-mode-js-css-indent-offsetJavaScript and CSS indent spaces related to the <script> and <style> HTML tags.
mhtml-ts-mode-mapKeymap for ‘mhtml-ts-mode’ buffers.
mhtml-ts-mode-menuMenu bar for ‘mhtml-ts-mode’.
mhtml-ts-mode-pretty-print-commandThe command to pretty print the current HTML buffer.
mhtml-ts-mode-saved-pretty-print-commandThe command last used to pretty print in this buffer.
mhtml-ts-mode-syntax-tableSyntax table for ‘mhtml-ts-mode’.
mhtml-ts-mode-tag-relative-indentHow <script> and <style> bodies are indented relative to the tag.

Defined functions (12)

mhtml-ts-mode()
mhtml-ts-mode--colorize-css-value(NODE OVERRIDE START END &rest _)
mhtml-ts-mode--defun-name(NODE)
mhtml-ts-mode--js-css-tag-bol(NODE PARENT &rest _)
mhtml-ts-mode--switch-fill-defun(&rest ARGUMENTS)
mhtml-ts-mode--tag-relative-indent-offset(SYM VAL)
mhtml-ts-mode--treesit-font-lock-settings()
mhtml-ts-mode--treesit-indent-rules()
mhtml-ts-mode-flymake-mhtml(REPORT-FN &rest ARGS)
mhtml-ts-mode-install-parsers()
mhtml-ts-mode-menu(ARG1)
mhtml-ts-mode-pretty-print(COMMAND)

Defined faces (0)