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

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

Open
nazmulidris opened this issue Jan 27, 2024 · 0 comments

Comments

@nazmulidris
Copy link
Contributor

nazmulidris commented Jan 27, 2024

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.

@nazmulidris nazmulidris self-assigned this Jan 27, 2024
@nazmulidris nazmulidris changed the title [public-pending] Syntax highlighting for fenced code blocks, in command help output, on Linux works yntax highlighting for fenced code blocks, in command help output, on Linux works Jan 27, 2024
@nazmulidris nazmulidris changed the title yntax highlighting for fenced code blocks, in command help output, on Linux works Syntax highlighting for fenced code blocks, in command help output, on Linux works Jan 27, 2024
@nazmulidris nazmulidris removed their assignment Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant