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

--html-only still prepends <style> tag to output #3

Closed
rykov opened this issue Sep 18, 2017 · 3 comments
Closed

--html-only still prepends <style> tag to output #3

rykov opened this issue Sep 18, 2017 · 3 comments

Comments

@rykov
Copy link

rykov commented Sep 18, 2017

When I run the following command:

./chroma -l Ruby --html --html-only code.rb

The output looks something like this:

<style type="text/css">
... snip CSS...
</style>
<pre class="chroma">
... snip HTML...

Is there an option to just output the <pre> tag and its content, and I would generate the CSS separately with --html-styles?

@alecthomas
Copy link
Owner

Whoops! That is what it should be doing, let me whip up a fix.

alecthomas added a commit that referenced this issue Sep 19, 2017
@alecthomas
Copy link
Owner

Okay, that should be working now:

[aat@cavern:~/Projects/chroma]chroma --html --html-only colour.go | head -20
<pre class="chroma">
<span class="s3e8">package</span> chroma

<span class="s3e8">import</span> (
        <span class="sc1c">&#34;fmt&#34;</span>
        <span class="sc1c">&#34;strconv&#34;</span>
        <span class="sc1c">&#34;strings&#34;</span>
)

@rykov
Copy link
Author

rykov commented Sep 19, 2017

Great! Thank you.

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

2 participants