Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting in editors #1066

Open
danjessen opened this issue Sep 16, 2024 · 6 comments
Open

Syntax highlighting in editors #1066

danjessen opened this issue Sep 16, 2024 · 6 comments

Comments

@danjessen
Copy link

danjessen commented Sep 16, 2024

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)

@wisskid
Copy link
Contributor

wisskid commented Sep 20, 2024

I guess you could offer to help the authors of the editors/plugins you mentioned to implemented the required changes?

@shadowwa
Copy link
Contributor

I've also had the same problem last year and ended up updating dbestevez version https://github.com/shadowwa/smarty.vim

@marclaporte
Copy link
Contributor

Seems it would be nice to track these in a wiki page: https://github.com/smarty-php/smarty/wiki

@danjessen
Copy link
Author

Seems it would be nice to track these in a wiki page: https://github.com/smarty-php/smarty/wiki

Either that or the documentation.

@danjessen
Copy link
Author

danjessen commented Nov 1, 2024

I guess you could offer to help the authors of the editors/plugins you mentioned to implemented the required changes?

I have been, sadly my time outside work has been limited.

Kibadda/tree-sitter-smarty#2

So here I am, trying to create some attention around the issue.

@danjessen
Copy link
Author

I've also had the same problem last year and ended up updating dbestevez version https://github.com/shadowwa/smarty.vim

Looks great. I will look into it. I made my own version of the smarty syntax, but it is maybe a bit opinionated towards my needs.

Screenshot 2024-11-01 at 09 30 31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants