{"id":16889724,"url":"https://github.com/benoitc/epygments","last_synced_at":"2025-08-07T23:28:49.955Z","repository":{"id":2415819,"uuid":"3383982","full_name":"benoitc/epygments","owner":"benoitc","description":"Simple wrapper to Pygments - prettify source code in your erlang program.","archived":false,"fork":false,"pushed_at":"2012-02-08T04:11:53.000Z","size":97,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T11:52:30.960Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mvarnagiris/financius-public","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benoitc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-08T03:46:13.000Z","updated_at":"2020-01-21T11:10:59.000Z","dependencies_parsed_at":"2022-08-27T22:10:27.778Z","dependency_job_id":null,"html_url":"https://github.com/benoitc/epygments","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitc%2Fepygments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitc%2Fepygments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitc%2Fepygments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitc%2Fepygments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benoitc","download_url":"https://codeload.github.com/benoitc/epygments/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244566948,"owners_count":20473451,"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-10-13T16:58:36.251Z","updated_at":"2025-03-20T07:18:29.271Z","avatar_url":"https://github.com/benoitc.png","language":"Erlang","readme":"# epygments\n\nepygments is a simple wrapper to [Pygments](http://pygments.org/) to\nhighlight source code from your erlang program.\n\n## Requirements\n\n- Python 2.5x \u0026 sup.\n- [erlport](http://erlport.org/) - Erlang port protocol for Python\n- [Pygments](http://pygments.org/)\n\n## installation\n\nYou can install manually the python dependancies or use Pip:\n\n    $ pip install -r requirements.txt\n\nto use compile epygments:\n\n    $ make\n\nto create the doc:\n\n    $ make docs\n\nthen open index.html in the doc folder.\n\n## Use it:\n\nFor now epygments offers you 2 function that you can use in your\napplication:\n\n- `epygments:all_languages/0` : get all languages\n- `epygments:highlight/2`, `epygments:highlight/3`, `epygments:highlight/4` : prettify the source code. See the reference doc for more informations.\n\n## Test it:\n\n\n    $ erl -pa ebin -pa deps/poolboy/ebin\n    Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]\n\n    Eshell V5.9  (abort with ^G)\n    1\u003e application:start(epygments).\n    ok\n    2\u003e epygments:all_languages().\n    [{\u003c\u003c\"text\"\u003e\u003e,\u003c\u003c\"Plain text\"\u003e\u003e},\n     {\u003c\u003c\"Cucumber\"\u003e\u003e,\u003c\u003c\"Gherkin\"\u003e\u003e},\n     {\u003c\u003c\"abap\"\u003e\u003e,\u003c\u003c\"ABAP\"\u003e\u003e},\n     {\u003c\u003c\"ada\"\u003e\u003e,\u003c\u003c\"Ada\"\u003e\u003e},\n     {\u003c\u003c\"ahk\"\u003e\u003e,\u003c\u003c\"autohotkey\"\u003e\u003e},\n     {\u003c\u003c\"antlr\"\u003e\u003e,\u003c\u003c\"ANTLR\"\u003e\u003e},\n     {\u003c\u003c\"antlr-as\"\u003e\u003e,\u003c\u003c\"ANTLR With ActionScript Target\"\u003e\u003e},\n     {\u003c\u003c\"antlr-cpp\"\u003e\u003e,\u003c\u003c\"ANTLR With CPP Target\"\u003e\u003e},\n     {\u003c\u003c\"antlr-csharp\"\u003e\u003e,\u003c\u003c\"ANTLR With C# Target\"\u003e\u003e},\n     {\u003c\u003c\"antlr-java\"\u003e\u003e,\u003c\u003c\"ANTLR With Java Target\"\u003e\u003e},\n     {\u003c\u003c\"antlr-objc\"\u003e\u003e,\u003c\u003c\"ANTLR With ObjectiveC Target\"\u003e\u003e},\n     {\u003c\u003c\"antlr-perl\"\u003e\u003e,\u003c\u003c\"ANTLR With Perl Target\"\u003e\u003e},\n     {\u003c\u003c\"antlr-python\"\u003e\u003e,\u003c\u003c\"ANTLR With Python Target\"\u003e\u003e},\n     {\u003c\u003c\"antlr-ruby\"\u003e\u003e,\u003c\u003c\"ANTLR With Ruby Target\"\u003e\u003e},\n     {\u003c\u003c\"apacheconf\"\u003e\u003e,\u003c\u003c\"ApacheConf\"\u003e\u003e},\n     {\u003c\u003c\"applescript\"\u003e\u003e,\u003c\u003c\"AppleScript\"\u003e\u003e},\n     {\u003c\u003c\"as\"\u003e\u003e,\u003c\u003c\"ActionScript\"\u003e\u003e},\n     {\u003c\u003c\"as3\"\u003e\u003e,\u003c\u003c\"ActionScript 3\"\u003e\u003e},\n     {\u003c\u003c\"aspx-cs\"\u003e\u003e,\u003c\u003c\"aspx-cs\"\u003e\u003e},\n     {\u003c\u003c\"aspx-vb\"\u003e\u003e,\u003c\u003c\"aspx-vb\"\u003e\u003e},\n     {\u003c\u003c\"asy\"\u003e\u003e,\u003c\u003c\"Asymptote\"\u003e\u003e},\n     {\u003c\u003c\"basemake\"\u003e\u003e,\u003c\u003c\"Makefile\"\u003e\u003e},\n     {\u003c\u003c\"bash\"\u003e\u003e,\u003c\u003c\"Bash\"\u003e\u003e},\n     {\u003c\u003c\"bat\"\u003e\u003e,\u003c\u003c\"Batchfile\"\u003e\u003e},\n     {\u003c\u003c\"bbcode\"\u003e\u003e,\u003c\u003c\"BBCode\"\u003e\u003e},\n     {\u003c\u003c\"befunge\"\u003e\u003e,\u003c\u003c\"Befu\"...\u003e\u003e},\n     {\u003c\u003c\"blit\"...\u003e\u003e,\u003c\u003c...\u003e\u003e},\n     {\u003c\u003c...\u003e\u003e,...},\n     {...}|...]\n    2\u003e epygments:highlight(\u003c\u003c\"def test(a):\\n     if a == 0:\\n    return True\"\u003e\u003e, \u003c\u003c\"python\"\u003e\u003e).\n    \"\u003cspan class=\\\"k\\\"\u003edef\u003c/span\u003e \u003cspan class=\\\"nf\\\"\u003etest\u003c/span\u003e\u003cspan class=\\\"p\\\"\u003e(\u003c/span\u003e\u003cspan class=\\\"n\\\"\u003ea\u003c/span\u003e\u003cspan class=\\\"p\\\"\u003e):\u003c/span\u003e\\n     \u003cspan class=\\\"k\\\"\u003eif\u003c/span\u003e \u003cspan class=\\\"n\\\"\u003ea\u003c/span\u003e \u003cspan class=\\\"o\\\"\u003e==\u003c/span\u003e \u003cspan class=\\\"mi\\\"\u003e0\u003c/span\u003e\u003cspan class=\\\"p\\\"\u003e:\u003c/span\u003e\\n    \u003cspan class=\\\"k\\\"\u003ereturn\u003c/span\u003e \u003cspan class=\\\"bp\\\"\u003eTrue\u003c/span\u003e\\n\"\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitc%2Fepygments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenoitc%2Fepygments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitc%2Fepygments/lists"}