Skip to content

Added syntax highlighting throug rougify [WIP]#365

Open
HEMAndonov98 wants to merge 1 commit intoStartBootstrap:masterfrom
HEMAndonov98:addingsyntaxhighlighting
Open

Added syntax highlighting throug rougify [WIP]#365
HEMAndonov98 wants to merge 1 commit intoStartBootstrap:masterfrom
HEMAndonov98:addingsyntaxhighlighting

Conversation

@HEMAndonov98
Copy link
Copy Markdown

Issue #315 by @arnaud-carre: Add Dynamic Syntax Highlighting with Rougify

This pull request introduces dynamic syntax highlighting for code blocks using Rougify themes.
To use this feature:

  1. Add a rougifytheme variable to your _config.yml file
  2. Build your Jekyll project.
  3. Write the desired theme name in the rougifytheme variable. For example:
rougifytheme: github

I've tested this feature with various code languages and Rougify themes, and it works as expected.

Future Improvements:

  • Explore options for customizing the syntax highlighting styles.

p.s This is my first pull request ever so I would be thankful for any feedback

Added a variable to the config.yml > rougifytheme:

Added rougify dir and rougify theme css files

included link dynamically in _includes/head.html

To use a theme simply write one of the prefered themes in the config.yml file for example:
rougifytheme: github

and build the solution, now it should support syntax highlighting
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.

1 participant