smarty-php / smarty-php/smarty
Syntax highlighting in editors
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 2.3k
- Forks
- 709
- PR merge metrics
- No merged PRs in 30d
Description
Hi
Been working with Smarty for almost 12 years now. Somehow syntax highlighting has always been a problem. Recently when working with neovim and tree-sitter.
Is there any recommended and updated way to get syntax highlighting across all editors, or just some of the big ones? Like vscode, neovim, jetbrains. Maybe using tree-sitter or some other tool.
It's kinda frustrating there is no official syntax support.
VSCode requires a plugin, like:
- https://github.com/aswinkumar863/smarty-vscode-support
- Syntax updated 4 years ago
Jetbrains requires a plugin, or PHPstorm
- https://plugins.jetbrains.com/plugin/6610-php
- Syntax maintained by Jetbrains
Neovim built in
- https://github.com/neovim/neovim/blob/a9031cc4a649f6ad5ef3db29a9bf52468332bcde/runtime/syntax/smarty.vim#L2
- Syntax update 22 years ago
Tree-sitter (general highlighting support)
- https://github.com/Kibadda/tree-sitter-smarty
- Recently updated, but not 100% compatible
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing VSCode, Neovim, JetBrains and tree-sitter integrations linked in the issue, comparing their Smarty compatibility and maintenance status. The scope needs to be defined before implementation; done should mean an agreed official syntax-highlighting approach and clear editor support targets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- neovim, php, vscode
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100