Package: gen-pygments-css
Generate Pygments CSSGenerate CSS stylesheets for each Pygments supported style.Explore the docs »View Demo·Report Bug·Request FeatureTable of ContentsAbout The ProjectBuilt WithGetting StartedInstallationInstall With PIPInstall From SourceUsageRoadmapContributingLicenseContactAcknowledgmentsAbout The ProjectGenerate CSS stylesheets for each Pygments supported style.Github Link:https://github.com/hreikin/gen-pygments-cssPyPi Link:https://pypi.org/project/gen-pygments-css/PDF Documentation:https://hreikin.github.io/gen-pygments-css/pdf/gen-pygments-css-documentation-LATEST.pdf(back to top)Built WithPygmentsPython(back to top)Getting StartedInstallationTo get a local copy up and running choose one of the below install instructions and follow the steps provided.Install With PIPThe simplest way to installgen-pygments-cssis to usepip:pipinstallgen-pygments-cssInstall From SourceAlternatively you can install from source by following the steps below:Clone the repo:gitclonehttps://github.com/hreikin/gen-pygments-css.gitcdgen-pygments-css/Create and source a Python virtual environment:python3-mvenv.venvsource.venv/bin/activateInstall requirements withpip:pipinstall-rrequirements.txt(back to top)UsageCSS stylesheets for allPygmentsstyles are output into a createdcss/directory by default, this can be overridden.fromgen_pygments_css.gen_pygments_cssimportgen_pygments_css# Called with no arguments.gen_pygments_css()# Called with a string passed into the styles_list.gen_pygments_css(styles_list="monokai")# Called with a list of strings passed into the styles_list.gen_pygments_css(styles_list=["monokai","stata-dark"])# Call with a CSS selector defined.gen_pygments_css(css_selector=".highlight")# Call with a multiple arguments defined.gen_pygments_css(css_selector=".highlight",styles_list=["monokai","stata-dark"])# Call with a relative custom css_dir.gen_pygments_css(css_dir="assets/styles/")# Call with an absolute custome css_dir.gen_pygments_css(css_dir="/home/user/project/assets/styles/")# Call the function and create a list of strings containing the paths of all# stylesheets.my_list=gen_pygments_css()For more examples, please refer to theDocumentation(back to top)RoadmapSee theopen issuesfor a full list of proposed features (and known issues).(back to top)ContributingContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make aregreatly appreciated.If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull Request(back to top)LicenseDistributed under the MIT License. SeeLICENSE.txtfor more information.(back to top)ContactGithub Link:https://github.com/hreikin/gen-pygments-cssPyPi Link:https://pypi.org/project/gen-pygments-css/PDF Documentation:https://hreikin.github.io/gen-pygments-css/pdf/gen-pygments-css-documentation-LATEST.pdf(back to top)