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

Directives for code blocks #5

Open
marshallward opened this issue Aug 3, 2016 · 1 comment
Open

Directives for code blocks #5

marshallward opened this issue Aug 3, 2016 · 1 comment

Comments

@marshallward
Copy link
Owner

Code blocks do not currently highlight directives, and instead highlight them as part of the code block, e.g.:

.. code:: c
   :number-lines: 10

   int main() {}

This is primarily an issue when using a language-specific syntax highlight inside of a code block.

@anntzer
Copy link
Contributor

anntzer commented Oct 15, 2016

FWIW this is not specific to code blocks, other directives can contain options such as

.. image:: picture.jpeg
   :height: 100px
   :width: 200 px
   :scale: 50 %
   :alt: alternate text
   :align: right

(http://docutils.sourceforge.net/docs/ref/rst/directives.html#image)

It would be nice if these options were highlighted separately.

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