{"id":18425807,"url":"https://github.com/dwayne/sass-pygments","last_synced_at":"2025-04-07T16:32:08.323Z","repository":{"id":3758284,"uuid":"4834239","full_name":"dwayne/sass-pygments","owner":"dwayne","description":"CSS and Sass styles for Pygments.","archived":false,"fork":false,"pushed_at":"2016-07-06T14:18:49.000Z","size":40,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-16T03:17:53.982Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwayne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-29T16:01:56.000Z","updated_at":"2023-04-04T14:19:00.000Z","dependencies_parsed_at":"2022-08-17T23:00:34.517Z","dependency_job_id":null,"html_url":"https://github.com/dwayne/sass-pygments","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwayne%2Fsass-pygments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwayne%2Fsass-pygments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwayne%2Fsass-pygments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwayne%2Fsass-pygments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwayne","download_url":"https://codeload.github.com/dwayne/sass-pygments/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223286474,"owners_count":17120000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T05:05:45.339Z","updated_at":"2024-11-06T05:05:45.931Z","avatar_url":"https://github.com/dwayne.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sass Pygments\n\n## Introduction\n\n[Sass](http://sass-lang.com/) makes CSS fun again.\n\n[Pygments](http://pygments.org/) is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code.\n\nPygments comes with a set of builtin styles, written as Python programs and not CSS files, for code highlighting. You have to generate a CSS file using the command line. I just figured I'd save someone all this work in the future and generate all the CSS files based on the Pygments builtins.\n\n## Quick Start\n\n**N.B. Both CSS and Sass (using SCSS syntax) files have been pre-generated for your convenience.**\n\nNavigate to the `styles` directory and choose one of the Pygments styles that has already been converted to CSS or Sass.\n\nThey were generated as follows:\n\n```bash\n$ cd sass-pygments\n$ virtualenv .env\n$ . .env/bin/activate\n(.env) $ bundle \u0026\u0026 pip install -r requirements.txt\n(.env) $ ./bin/convert-all\n```\n\n**N.B. `paraiso_dark` and `paraiso_light` styles could not be generated since `pygmentize` could not find the style classes 'Paraiso_DarkStyle' and 'Paraiso_LightStyle' in the style module.**\n\n## DIY\n\nThis part will show you how to setup your system to perform the conversions yourself.\n\n**N.B. This will only be necessary if you have custom Pygments style that cannot be found in the `styles` directory.**\n\nYou will need:\n\n- Python 2.7.x\n  - pip\n  - virtualenv\n\n- Ruby 2.x\n  - bundler\n\nOnce the requirements are met, execute the instructions below and you should be all set to process your own Pygments style files.\n\n```bash\n$ cd /tmp\n$ git clone git@github.com:dwayne/sass-pygments.git\n$ cd sass-pygments\n\n$ virtualenv .env\n$ . .env/bin/activate\n\n(.env) $ bundle \u0026\u0026 pip install -r requirements.txt\n```\n\nNow you can run the script on a style to convert it to CSS and Sass.\n\n```bash\n(.env) $ STYLES_DIR=/tmp/styles ./bin/convert style\n```\n\nFor e.g. `style` can be one of the builtins as listed below. But more than likely it will be the name of a custom style you want generated.\n\n```bash\n(.env) $ ./bin/show-builtins\nalgol_nu\nalgol\narduino\nautumn\nborland\nbw\ncolorful\ndefault\nemacs\nfriendly\nfruity\nigor\nlovelace\nmanni\nmonokai\nmurphy\nnative\nparaiso_dark\nparaiso_light\npastie\nperldoc\nrrt\ntango\ntrac\nvim\nvs\nxcode\n```\n\nWhen done, just deactivate the virtual environment.\n\n```bash\n(.env) $ deactivate\n$ ...\n```\n\nThat's it.\n\n## References\n\n- [Pygments](http://pygments.org/)\n- [Solarized](http://ethanschoonover.com/solarized)\n  - [pygments-solarized](https://github.com/john2x/solarized-pygment/)\n\n## Copyright\n\nCopyright (c) 2012-2016 Dwayne Crooks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwayne%2Fsass-pygments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwayne%2Fsass-pygments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwayne%2Fsass-pygments/lists"}