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 mhtml-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 (38)

inferior-php-ts-mode-abbrev-tableAbbrev table for ‘inferior-php-ts-mode’.
inferior-php-ts-mode-hookHook run after entering ‘inferior-php-ts-mode’.
inferior-php-ts-mode-mapKeymap for ‘inferior-php-ts-mode’.
inferior-php-ts-mode-syntax-tableSyntax table for ‘inferior-php-ts-mode’.
php-ts-html-indent-offsetThe number of spaces to indent PHP code relative to HTML tags.
php-ts-indent-offsetNumber of spaces for each indentation step in ‘php-ts-mode’.
php-ts-js-css-indent-offsetJavaScript and CSS indent spaces related to the <script> and <style> HTML tags.
php-ts-mode--class-magic-methodsPHP predefined magic methods.
php-ts-mode--comment-current-plistStore the current state of PHP comment configuration.
php-ts-mode--flymake-processStore the Flymake process.
php-ts-mode--inferior-promptPrompt used by PHP inferior process.
php-ts-mode--language-source-alistTreesitter language parsers required by ‘php-ts-mode’.
php-ts-mode--phpdoc-font-lock-settingsTree-sitter font-lock settings for phpdoc.
php-ts-mode--phpdoc-indent-rulesTree-sitter indentation rules for ‘phpdoc’.
php-ts-mode--predefined-constantPHP predefined constant.
php-ts-mode--prettify-symbols-alistValue for ‘prettify-symbols-alist’ in ‘php-ts-mode’.
php-ts-mode--syntax-tableSyntax table for ‘php-ts-mode’.
php-ts-mode--treesit-defun-type-regexpSettings for ‘treesit-defun-type-regexp’.
php-ts-mode-abbrev-tableAbbrev table for ‘php-ts-mode’.
php-ts-mode-alternative-php-program-nameAn alternative to the usual ‘php’ program name.
php-ts-mode-find-sibling-rulesRules for finding sibling files.
php-ts-mode-hookHook run after entering ‘php-ts-mode’.
php-ts-mode-html-indent-offsetThe number of spaces to indent PHP code relative to HTML tags.
php-ts-mode-html-relative-indentHow PHP code is indented relative to the HTML tags.
php-ts-mode-indent-offsetNumber of spaces for each indentation step in ‘php-ts-mode’.
php-ts-mode-indent-styleStyle used for indentation.
php-ts-mode-inferior-historyFile used to save command history of the inferior PHP process.
php-ts-mode-inferior-php-bufferName of the inferior PHP buffer.
php-ts-mode-js-css-indent-offsetJavaScript and CSS indent spaces related to the <script> and <style> HTML tags.
php-ts-mode-mapKeymap for ‘php-ts-mode’ buffers.
php-ts-mode-menuMenu bar entry for ‘php-ts-mode’.
php-ts-mode-php-configThe location of php.ini file.
php-ts-mode-php-default-executableThe default file name of the PHP executable.
php-ts-mode-phpdoc-highlight-errorsHighlight tags unknown to the phpdoc parser.
php-ts-mode-ws-document-rootThe root of the documents that the PHP built-in webserver will serve.
php-ts-mode-ws-hostnameThe hostname that will be served by the PHP built-in webserver.
php-ts-mode-ws-portThe port on which the PHP built-in webserver will listen.
php-ts-mode-ws-workersThe number of workers the PHP built-in webserver will fork.

Defined functions (60)

inferior-php-ts-mode()
inferior-php-ts-mode-startup(CMD &optional CONFIG)
php-ts-indent-style-safep(STYLE)
php-ts-mode()
php-ts-mode--anchor-first-sibling(NODE PARENT BOL &rest _)
php-ts-mode--anchor-prev-sibling(NODE PARENT BOL &rest _)
php-ts-mode--array-element-heuristic(NODE PARENT BOL &rest _)
php-ts-mode--comment-indent-new-line(&optional SOFT)
php-ts-mode--comment-setup(&optional FORCE)
php-ts-mode--custom-html-font-lock-settings()
php-ts-mode--defun-name(NODE)
php-ts-mode--defun-name-separator(NODE)
php-ts-mode--defun-object-name(NODE NODE-TEXT)
php-ts-mode--defun-valid-p(NODE)
php-ts-mode--else-heuristic(NODE PARENT BOL &rest _)
php-ts-mode--executable()
php-ts-mode--first-sibling(NODE PARENT &rest _)
php-ts-mode--font-lock-settings()
php-ts-mode--fontify-error(NODE OVERRIDE START END &rest _)
php-ts-mode--get-indent-style()
php-ts-mode--get-parser-ranges()
php-ts-mode--indent-defun()
php-ts-mode--indent-style-setter(SYM VAL)
php-ts-mode--indent-styles()
php-ts-mode--keywords()
php-ts-mode--operators()
php-ts-mode--parent-eol(NODE PARENT &rest _)
php-ts-mode--parent-html-heuristic(NODE PARENT BOL &rest _)
php-ts-mode--parent-object(NODE)
php-ts-mode--phpdoc-fontify-error(NODE OVERRIDE START END &rest _)
php-ts-mode--pipe-heuristic(NODE PARENT BOL &rest _)
php-ts-mode--prompt-for-style()
php-ts-mode--set-indent-property(STYLE)
php-ts-mode--test-namespace-aliasing-clause-p()
php-ts-mode--test-namespace-name-as-prefix-p()
php-ts-mode--test-namespace-use-group-clause-p()
php-ts-mode--test-php-end-tag-p()
php-ts-mode--test-pipe-p()
php-ts-mode--test-property-hook-p()
php-ts-mode--test-relative-name-p()
php-ts-mode--test-visibility-modifier-operation-p()
php-ts-mode--test-yield-from-p()
php-ts-mode--webserver-read-args(&optional TYPE)
php-ts-mode-flymake-php(REPORT-FN &rest ARGS)
php-ts-mode-hide-process-buffer()
php-ts-mode-inferior--write-history(PROCESS _)
php-ts-mode-install-parsers()
php-ts-mode-kill-process()
php-ts-mode-maybe()
php-ts-mode-menu(ARG1)
php-ts-mode-run-php-webserver(&optional PORT HOSTNAME DOCUMENT-ROOT ROUTER-SCRIPT NUM-OF-WORKERS CONFIG)
php-ts-mode-send-buffer()
php-ts-mode-send-file(FILE)
php-ts-mode-send-region(BEG END)
php-ts-mode-set-comment-style()
php-ts-mode-set-global-style(STYLE)
php-ts-mode-set-style(STYLE)
php-ts-mode-show-ini()
php-ts-mode-show-process-buffer()
run-php(&optional CMD CONFIG)

Defined faces (0)