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

Configurable syntax highlighting style #2

Open
ratmice opened this issue Jun 21, 2019 · 0 comments
Open

Configurable syntax highlighting style #2

ratmice opened this issue Jun 21, 2019 · 0 comments

Comments

@ratmice
Copy link
Owner

ratmice commented Jun 21, 2019

This one is kind of a can of worms,

Currently TeX is generated, then the document is sorted and collated bringing in chunks of pre-generated TeX.

Since the configuration allows multiple documents, each document could have a different theme. We need to either delay TeX generation until after sorting/before collating.

Or make the pre-generated TeX stable across different themes. Currently it is not stable, rather than using named colors, and a theme based color map, it hard codes the RGB values from the theme in the output.

The first option is easiest to implement, it may be slower if you are generating output with multiple themes e.g. for a print and screen version. Since in that case TeX generation would have to occur twice. But TeX generation is generally much faster than rendering so that may not really matter.

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

1 participant