I have code written in any programming language. How can I “prettify” it (bold if, else etc.) to display on a website? Are there any good APIs to do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is Google’s prettify which is widely used for such tasks (e.g. SO itself uses it for highlighting of code).
Moreover, as i know, there is a lot of third-party styles for those languages that not supported officially.