File: php-ts-mode.el.html
This package provides php-ts-mode which is a major mode
for editing PHP files with embedded HTML, JavaScript, CSS and phpdoc.
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-php
* 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
* https://github.com/claytonrcarter/tree-sitter-phpdoc
Features
* Indent
* IMenu
* Navigation
* Which-function
* Flymake
* Tree-sitter parser installation helper
* PHP built-in server support
* Shell interaction: execute PHP code in a inferior PHP process
Defined variables (34)
inferior-php-ts-mode-abbrev-table | Abbrev table for ‘inferior-php-ts-mode’. |
inferior-php-ts-mode-hook | Hook run after entering ‘inferior-php-ts-mode’. |
inferior-php-ts-mode-map | Keymap for ‘inferior-php-ts-mode’. |
inferior-php-ts-mode-syntax-table | Syntax table for ‘inferior-php-ts-mode’. |
php-ts-mode--class-magic-methods | PHP predefined magic methods. |
php-ts-mode--custom-html-font-lock-settings | Tree-sitter Font-lock settings for HTML when embedded in PHP. |
php-ts-mode--flymake-process | Store the Flymake process. |
php-ts-mode--inferior-php-process | The PHP inferior process associated to ‘php-ts-mode-inferior-php-buffer’. |
php-ts-mode--inferior-prompt | Prompt used by PHP inferior process. |
php-ts-mode--keywords | PHP keywords for tree-sitter font-locking. |
php-ts-mode--language-source-alist | Treesitter language parsers required by ‘php-ts-mode’. |
php-ts-mode--operators | PHP operators for tree-sitter font-locking. |
php-ts-mode--phpdoc-font-lock-settings | Tree-sitter font-lock settings for phpdoc. |
php-ts-mode--phpdoc-indent-rules | Tree-sitter indentation rules for ‘phpdoc’. |
php-ts-mode--possibly-braceless-keyword-re | Regexp matching keywords optionally followed by an opening brace. |
php-ts-mode--predefined-constant | PHP predefined constant. |
php-ts-mode--syntax-table | Syntax table for ‘php-ts-mode’. |
php-ts-mode-abbrev-table | Abbrev table for ‘php-ts-mode’. |
php-ts-mode-alternative-php-program-name | An alternative to the usual ‘php’ program name. |
php-ts-mode-css-fontify-colors | Whether CSS colors should be fontified using the color as the background. |
php-ts-mode-hook | Hook run after entering ‘php-ts-mode’. |
php-ts-mode-indent-offset | Number of spaces for each indentation step in ‘php-ts-mode’. |
php-ts-mode-indent-style | Style used for indentation. |
php-ts-mode-inferior-history | File used to save command history of the inferior PHP process. |
php-ts-mode-inferior-php-buffer | Name of the inferior PHP buffer. |
php-ts-mode-js-css-indent-offset | JavaScript and CSS indent spaces related to the <script> and <style> HTML tags. |
php-ts-mode-map | Keymap for ‘php-ts-mode’ buffers. |
php-ts-mode-menu | Menu bar entry for ‘php-ts-mode’. |
php-ts-mode-php-config | The location of php.ini file. |
php-ts-mode-php-default-executable | The default PHP executable. |
php-ts-mode-ws-document-root | The root of the documents that the PHP built-in webserver will serve. |
php-ts-mode-ws-hostname | The hostname that will be served by the PHP built-in webserver. |
php-ts-mode-ws-port | The port on which the PHP built-in webserver will listen. |
php-ts-mode-ws-workers | The number of workers the PHP built-in webserver will fork. |