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

Code highlighting needs additional css styles #5

Closed
justinwalsh opened this issue Jul 13, 2013 · 5 comments
Closed

Code highlighting needs additional css styles #5

justinwalsh opened this issue Jul 13, 2013 · 5 comments

Comments

@justinwalsh
Copy link
Owner

Reported by reddit user:

Source code formatting doesn't seem to work.

The code formatting is working, but there are not enough style differences in our custom themes to make the code highlighting more visible.

Source

@Teepareep
Copy link

How can we incorporate these styles? http://highlightjs.org/static/test.html
I tried just including a link to the stylesheet as described here: http://highlightjs.org/usage/
That didn't seem to do much.
Wonderful project :)

@dkisselev
Copy link
Collaborator

Are you sure that you placed the link into the appropriate place? The index.php file in daux is a little confusing because it generates both the homepage and the documentation pages, so you have to make sure that you scroll far enough down so that you're editing the documentation pages, not just the homepage.

Check View Source on your docs pages to make sure that highlight stylesheet is being loaded.

@Teepareep
Copy link

Thank you for your assistance. I had trouble trying the style sheets on highlightjs' github. This is what ended up working, as long as the css file was downloaded directly from here: http://yandex.st/highlightjs/7.5/styles/

    <!-- hightlight.js -->
    <link rel="stylesheet" href="/docs/css/tomorrow-night.min.css">
    <script src="/docs/js/highlight.min.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>

It looks awesome now!

@MSylvia
Copy link

MSylvia commented Jan 9, 2014

Just pull the css files needed from the 7.5 tag of highlight.js.
https://github.com/isagalaev/highlight.js/tree/7.5

@dkisselev
Copy link
Collaborator

Fixed with PR 118

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

No branches or pull requests

4 participants