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

Djaneiro HTML syntax: make django blocks stand out #87

Open
froddd opened this issue Jan 29, 2015 · 2 comments
Open

Djaneiro HTML syntax: make django blocks stand out #87

froddd opened this issue Jan 29, 2015 · 2 comments

Comments

@froddd
Copy link

froddd commented Jan 29, 2015

When viewing a template with the Djaneiro HTML syntax highlighting, the django-specific syntax doesn't contrast much with the rest of the HTML as they use mostly the same colours (apart from comments, which follow the normal comment highlighting).

The Handlebars plugin (https://github.com/daaain/Handlebars) does this pretty well, as an example: loops and block tags, as well as variables, stand out nicely, in any colour scheme.

@olivierdalang
Copy link

+1
Django tags are usally very simple so that there's no need for syntax coloring inside them. We just need them to stand out from the html. Actually, just extending the normal hmtl highlighting but making anything between { and } stand out using just one special color (or background color) would be enough (appart from the comments).

Thanks for the great work !

@squ1b3r
Copy link
Owner

squ1b3r commented Mar 1, 2017

While I like the idea the actual implementation is not that simple. There are hundreds of color schemes which people use. Which color should I pick? Which one will work will all of them and won't look ugly for some users. Djaneiro uses default colors and they change with your color scheme.

I'll take a look a see if I can use something from default variables and see if that will make things better.

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

3 participants