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

Added syntax highlighting throug rougify [WIP] #365

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HEMAndonov98
Copy link

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