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

Support console family of code highlighters. #375

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Jan 29, 2025

This adds support for the often used console and console-result family and highlights the first line using a new custom highlighter for console code examples where the first line is the HTTP API call.

The rest of the code will be highlighted using json.

highlight3.mp4

This adds support for the often used `console` language family and highlights the first line using a new custom highlighter.

The rest of the code will be highlighted using json.
@Mpdreamz Mpdreamz linked an issue Jan 29, 2025 that may be closed by this pull request
3 tasks
Copy link
Member

@reakaleek reakaleek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks neat!

Copy link
Member

@bmorelli25 bmorelli25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this!!!

@bmorelli25
Copy link
Member

Can you add an example to https://github.com/elastic/docs-builder/blob/main/docs/syntax/code.md

@Mpdreamz Mpdreamz merged commit 8e2adbc into main Jan 30, 2025
5 checks passed
@Mpdreamz Mpdreamz deleted the feature/console-highlighting branch January 30, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No syntax highlighting
3 participants