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-process | Store the Flymake process. |
mhtml-ts-mode--js-css-indent-offset | Internal copy of ‘mhtml-ts-mode-js-css-indent-offset’. |
mhtml-ts-mode--prettify-symbols-alist | Alist of symbol prettifications for various supported languages. |
mhtml-ts-mode--treesit-aggregated-outline-predicate | Settings for ‘treesit-aggregated-outline-predicate’. |
mhtml-ts-mode--treesit-aggregated-simple-imenu-settings | Settings for ‘treesit-simple-imenu’. |
mhtml-ts-mode--treesit-defun-type-regexp | Settings for ‘treesit-defun-type-regexp’. |
mhtml-ts-mode--treesit-font-lock-feature-list | Settings for ‘treesit-font-lock-feature-list’. |
mhtml-ts-mode--treesit-thing-settings | Settings for ‘treesit-thing-settings’. |
mhtml-ts-mode-abbrev-table | Abbrev table for ‘mhtml-ts-mode’. |
mhtml-ts-mode-css-fontify-colors | Whether CSS colors should be fontified using the color as the background. |
mhtml-ts-mode-hook | Hook run after entering ‘mhtml-ts-mode’. |
mhtml-ts-mode-js-css-indent-offset | JavaScript and CSS indent spaces related to the <script> and <style> HTML tags. |
mhtml-ts-mode-map | Keymap for ‘mhtml-ts-mode’ buffers. |
mhtml-ts-mode-menu | Menu bar for ‘mhtml-ts-mode’. |
mhtml-ts-mode-pretty-print-command | The command to pretty print the current HTML buffer. |
mhtml-ts-mode-saved-pretty-print-command | The command last used to pretty print in this buffer. |
mhtml-ts-mode-syntax-table | Syntax table for ‘mhtml-ts-mode’. |
mhtml-ts-mode-tag-relative-indent | How <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) |