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

No syntax highlighting. #15

Closed
Kiiyya opened this issue Jul 2, 2021 · 7 comments
Closed

No syntax highlighting. #15

Kiiyya opened this issue Jul 2, 2021 · 7 comments

Comments

@Kiiyya
Copy link

Kiiyya commented Jul 2, 2021

I may be just dumb, but I can't figure out how to activate the tera extension.
Changing language in VSCode lists nothing when searching for "tera", and searching for "html" only brings up HTML itself, but no option "HTML (Tera)" as specified here.

Which file extension does the extension expect? .tera? Just .html, and if yes does it auto-detect that it's a tera template file then? Or .html.tera? Which one is recommended.

Thanks for your work either way :)

@Kiiyya Kiiyya closed this as completed Jul 3, 2021
@tusamni
Copy link

tusamni commented Jul 6, 2021

Any word on this? I'm having the same issue.

@karuna
Copy link
Owner

karuna commented Jul 6, 2021 via email

@Kiiyya
Copy link
Author

Kiiyya commented Jul 6, 2021

By the looks of it, simply setting the language to HTML somehow sets the language to Tera-HTML, hence why I closed the issue.
That is not very obvious, and while I don't know much about VSCode extension development, as a user I have the following two confusions:

  • Do all open HTML files, even non-Tera, now have Tera syntax higlighting enabled? If yes then that feels like it shouldn't be the case. For example CTRL-/ now creates a Tera comment instead of a HTML comment, etc.
  • Not knowing that the Tera extension is enabled and/or how to enable it.

A simple distinct option like "HTML (Tera)" would solve all of that :)

@Kiiyya Kiiyya reopened this Jul 6, 2021
@tusamni
Copy link

tusamni commented Jul 6, 2021

It is working now on my .html files.

Syntax highlighting is working great, but indenting doesn't seem to work.

@karuna
Copy link
Owner

karuna commented Jul 7, 2021

I think it works now as of 0.0.7

@karuna karuna closed this as completed Jul 7, 2021
@vallentin
Copy link

@karuna Unsure, if this is related to this particular issue. But I'm having an issue with syntax highlighting in VSCode 1.59.0. Syntax highlighting for Markdown files uses this extension by default now. So the default syntax highlighting is gone. Everything is just the same solid color, as if it was plain text.

I simply updated VSCode, and then syntax highlighting for Markdown files was gone. I performed an "Extension Bisect" and the result was that disabling this extension resolved my issue.

If there's any other information I can provide, then I'll happily do so. Skimmed through the VSCode release notes, and no change stood out.

@schungx
Copy link

schungx commented Feb 16, 2024

Well, I just installed the extension and there doesn't seem to be any way to activate it... HTML keeps being shown as HTML...

Any pointers?

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

5 participants