Skip to content

feat: add syntax highlighting to text files - #162

Merged
antonmedv merged 1 commit into
antonmedv:masterfrom
aymanbagabas:syntax-highlight
Feb 12, 2025
Merged

antonmedv merged 1 commit into
antonmedv:masterfrom
aymanbagabas:syntax-highlight

Conversation

@aymanbagabas

@aymanbagabas aymanbagabas commented Feb 11, 2025 •

Copy link
Copy Markdown
Contributor

This uses chroma to highlight the content of text files. The content is
highlighted based on the file extension. If the file extension is not
recognized, the content is displayed as is.

This is based on and includes commits from #161

Fixes: #154

This is using the "friendly" Chroma style. Here's a list of supported Chroma styles https://xyproto.github.io/splash/docs/all.html

image

@antonmedv

Copy link
Copy Markdown
Owner

Cool! Please rebase.

This uses chroma to highlight the content of text files. The content is
highlighted based on the file extension. If the file extension is not
recognized, the content is displayed as is.
@aymanbagabas

Copy link
Copy Markdown
Contributor Author

Cool! Please rebase.

Done!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Syntax highlighting in preview mode

2 participants

⌂ 换网址