Skip to content

added prism.js for syntax highlighting in code blocks (specific languagee) - #861

Open
Amrit-raj50 wants to merge 1 commit into
git:masterfrom
Amrit-raj50:master
Open

added prism.js for syntax highlighting in code blocks (specific languagee)#861
Amrit-raj50 wants to merge 1 commit into
git:masterfrom
Amrit-raj50:master

Conversation

@Amrit-raj50

Copy link
Copy Markdown

Fixes #490.
-- Integrates Prism.js to enable proper syntax highlighting for fenced code blocks across the site.

Changes:
-- Added script/prism.js (bundled core + common languages).
-- Added css/prism.css (default light theme).
-- Linked both files in _layouts/default.html.
-- Tested locally; code blocks with language tags now render with syntax colors instead of plain text.

@Amrit-raj50

Copy link
Copy Markdown
Author

Hi @sivaraam , review this and let me know if any changes required, if no issue found then please merge the PR because it gives me motivation.

before :

image

after :

image

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.

Explore enabling syntax highlight for codeblock

1 participant