smarty-php / smarty-php/smarty

Syntax highlighting in editors

Open
#1,066 6 comments 0 reactions 0 assignees View on GitHub

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:

Jetbrains requires a plugin, or PHPstorm

Neovim built in

Tree-sitter (general highlighting support)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.