{"id":16287718,"url":"https://github.com/blu-base/gcodelexer","last_synced_at":"2025-10-13T15:34:34.376Z","repository":{"id":49333354,"uuid":"218861581","full_name":"blu-base/gcodeLexer","owner":"blu-base","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-03T15:34:31.000Z","size":35,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T09:50:36.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blu-base.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":"2019-10-31T21:03:29.000Z","updated_at":"2024-05-03T12:48:44.000Z","dependencies_parsed_at":"2022-08-27T11:33:15.523Z","dependency_job_id":null,"html_url":"https://github.com/blu-base/gcodeLexer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blu-base/gcodeLexer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blu-base%2FgcodeLexer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blu-base%2FgcodeLexer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blu-base%2FgcodeLexer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blu-base%2FgcodeLexer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blu-base","download_url":"https://codeload.github.com/blu-base/gcodeLexer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blu-base%2FgcodeLexer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015929,"owners_count":26085777,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10T19:45:54.774Z","updated_at":"2025-10-13T15:34:34.353Z","avatar_url":"https://github.com/blu-base.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"gCodeLexer\n==========\n\nG-Code used to control CNC machines, such as mills, printers, and lathes.\nThis repository is enables synthax highlighting of such code with python's pygments library.\n\nThis feature has been missing in pygments. At some point this repo will be pushed upstream.\n\n\nDocumentation\n------------\nThe online documention for pygments can be found on its homepage: https://pygments.org\n\nThis repository is recognizing the following file extensions as gcode to be lexed:\napt, cnc, din, dnc, ecs, eia, fan, fgc, fnc, gc, gcd, GCD, gcode, hnc, i, maz, min, mpf,\nmpr, nc, NC, ncc, ncf, ncg, ncp, ngc, pim, plt, ply, prg, ptp, rol, sbp, tap, xpi\n\n## INSTALL\n\n    python setup.py install\n\n## Usage\n\n    from pygments.lexers import get_lexer_by_name\n    get_lexer_by_name('gcode')\n\nor\n\n    from pygments.lexers import find_lexer_class\n    find_lexer_class('gCodeLexer')\n\n\nAfter installing, you can also run `pygmentize`. \n\n    pygmentize -O full -f html -o samples.html samples.ngc\n\n\n## Sample\n\n![A lexed gcode sample drawn with default styling](Sample.png?raw=true \"Lexer Sample\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblu-base%2Fgcodelexer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblu-base%2Fgcodelexer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblu-base%2Fgcodelexer/lists"}