Skip to content

Syntax highlighting for fenced code blocks, in command help output, on macOS works #7472

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 macOS.

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

Here's an example on macOS 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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions