using prism for code formatting #3516
Unanswered
arunkumar413
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hello! I'm not sure what you mean by "formatting". Prism is a syntax highlighter, so we don't change source text, we only add markup around it to give it different styles. We do offer the normalize whitespace plugin, but that can hardly be called a formatter. We definitely can't do formatting like Prettier does. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Team,
I'd like to understand if prism can be used for formatting code like prettier. Seems like prism returns the HTML markup as well to display the code. Is there a way to make prism return only the formatted code?
Thanks,
Arun
Beta Was this translation helpful? Give feedback.
All reactions