Skip to content

Libdoc: Add syntax highlighting support when using reStructuredText #2448

Closed

Description

@pekkaklarck

Libdoc has supported reStructuredText since RF 2.7.5 (#489) and reST has supported code blocks since docutils 0.9. Syntax highlighting in reST is implemented using Pygments which supports dozens of programming languages, including Robot Framework syntax.

It's currently possible to use code blocks with Libdoc when using reST, but results are not highlighted. The main benefit of adding syntax highlight support is to make examples created using code blocks look a lot better. This is important especially if Selenium2Library starts using reST (robotframework/Selenium2Library#389), but reST would work also nicely in Robot's own standard library docs.

This issue only covers adding syntax highlighting and #2507 covers other reST related enhancements.

Activity

  1. added this to the 3.0.1 milestone on Sep 23, 2016
  2. self-assigned this
    on Sep 23, 2016
  3. pekkaklarck commented on Dec 29, 2016

    @pekkaklarck
    MemberAuthor

    Commit 855deb2 added docs and test for highlighting. This issue can be considered done.

  4. changed the title [-]Libdoc does not support syntax highlighting when using reStructuredText[/-] [+]Libdoc: Add syntax highlighting support when using reStructuredText[/+] on Dec 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions