Syntax Highlighting/Autocomplete? #29
-
First of all, I love this. It has many of the nice things from htpy, but with a syntax closer to that of raw html. The one thing I was wondering is if it would be possible to eventually have syntax highlighting and autocompletion for the html parts in an IDE. (automatic closing brackets and tags, and tag and attribute completion) I'm not really sure if it's even feasible, since there is nothing to really mark that a template string is a tdom template string except when it's wrapped in an |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@gazpachoking Thanks! We're excited to get syntax highlighting, formatting, and autocomplete working in both PyCharm and VSCode. (We really want these things, too!) But: it's still a ways off. Specifically, I don't think tooling support will be ready when Python 3.14 ships in early October. The indomitable @koxudaxi has done a ton of initial work in this direction... perhaps he can say more! |
Beta Was this translation helpful? Give feedback.
-
@gazpachoking PyCharm: VSCode: t-linter (https://github.com/koxudaxi/t-linter) The challenge is that there's no consensus yet on how to define sub-languages within t-strings, so we need to build community agreement through PoCs like this. There's an ongoing discussion here: While I don't necessarily expect everyone to use my tool, I agree this is an essential feature as you mentioned, and I'd be happy to work together on moving this forward! |
Beta Was this translation helpful? Give feedback.
@gazpachoking Thanks!
We're excited to get syntax highlighting, formatting, and autocomplete working in both PyCharm and VSCode. (We really want these things, too!)
But: it's still a ways off. Specifically, I don't think tooling support will be ready when Python 3.14 ships in early October.
The indomitable @koxudaxi has done a ton of initial work in this direction... perhaps he can say more!