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

Allow "text" as a syntax highlighting language #1633

Closed
ericseppanen opened this issue Oct 5, 2021 · 2 comments
Closed

Allow "text" as a syntax highlighting language #1633

ericseppanen opened this issue Oct 5, 2021 · 2 comments
Labels
done in pr Already done in a PR

Comments

@ericseppanen
Copy link

Bug Report

I frequently use this syntax to disable syntax highlighting. It works on other markdown implementations (e.g. github):

```text
some text here
```

The text language is the one I've seen recommended most frequently.

Zola only allows txt for this purpose. Would it be possible to allow text as well?

Environment

Zola version: 0.14.1

Expected Behavior

Using text syntax highlighting is disabled.

Current Behavior

When I run zola build I get many warnings of the form

Warning: Highlight language text not found in foo.md
@mwcz
Copy link
Contributor

mwcz commented Oct 14, 2021

I could be wrong, but I think that change would need to be made in sublimehq/Packages/blob/master/Text/Plain text.tmLanguage.

@Keats
Copy link
Collaborator

Keats commented Oct 14, 2021

You can probably add an alias in https://github.com/getzola/zola/blob/master/components/config/examples/generate_sublime.rs but tbh there's already txt so I'm inclined to not add text

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

No branches or pull requests

3 participants