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

rest2html: Add support for highlight directive #925

Merged
merged 1 commit into from
May 28, 2017

Conversation

bgamari
Copy link
Contributor

@bgamari bgamari commented Sep 4, 2016

This adds support for the highlight directive, a Sphinx feature which
allows one to set the default syntax highlighting language used for code
blocks.

This fixes #924.

@bgamari
Copy link
Contributor Author

bgamari commented Sep 18, 2016

Ping.

@bgamari
Copy link
Contributor Author

bgamari commented Jan 4, 2017

Hello?

Copy link

@CHECOONE CHECOONE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checo

else:
self.body.append(self.starttag(node, 'pre'))

def visit_highlight(self, node):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea about rST, so forgive me if I'm missing the mark, but should this definition be here? It looks like we don't output to stdout at any other time except when returning from main().

else:
self.body.append(self.starttag(node, 'pre'))

def visit_highlight(self, node):

This comment was marked as spam.

This adds support for the `highlight` directive, a Sphinx feature which
allows one to set the default syntax highlighting language used for code
blocks.
@bgamari
Copy link
Contributor Author

bgamari commented May 27, 2017

Fixed.

@kivikakk
Copy link
Contributor

LGTM!

@kivikakk kivikakk merged commit 89441f4 into github:master May 28, 2017
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

Successfully merging this pull request may close these issues.

reStructuredText highlight directive doesn't work
4 participants