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

To enable syntax highlighting for SFC custom block #1347

Closed
moliu666 opened this issue May 25, 2022 · 2 comments
Closed

To enable syntax highlighting for SFC custom block #1347

moliu666 opened this issue May 25, 2022 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@moliu666
Copy link

How to enable syntax highlighting for SFC custom block

like Vetur's Custom Code Blocks

@johnsoncodehk
Copy link
Member

You can use lang attribute to specify any language for custom block like <foo lang="md">...</foo>.

@johnsoncodehk
Copy link
Member

Duplicate of #127

@johnsoncodehk johnsoncodehk marked this as a duplicate of #127 May 28, 2022
@johnsoncodehk johnsoncodehk added the duplicate This issue or pull request already exists label May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants