Skip to content

Syntax highlighting for fenced code blocks, in command help output, on Linux works #7471

Open
@nazmulidris

Description

Current behavior

Currently, for Ockam Command CLI help output, the syntax highlighting for fenced code blocks has been disabled. It didn't work properly on Linux.

This commit removes the use of the use of FencedCodeBlockHighlighter::process_line().

Here's an example on Linux of the current behavior. Run ockam project ticket --help. It produces the following output in the Examples section. Note that it does not have any syntax highlighting.

Image

Desired behavior

With syntax highlighting via syntect crate, it should be whatever syntect produces for sh syntax set.

Here are some places to get started in the code.

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions