{"id":21115892,"url":"https://github.com/thomasjo/highlight","last_synced_at":"2025-10-11T06:03:24.956Z","repository":{"id":44589067,"uuid":"1515925","full_name":"thomasjo/highlight","owner":"thomasjo","description":"A relatively simple and extensible syntax highlighter written in C#","archived":false,"fork":false,"pushed_at":"2024-01-10T16:21:28.000Z","size":502,"stargazers_count":93,"open_issues_count":4,"forks_count":29,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-01T09:12:28.876Z","etag":null,"topics":["c-sharp","dotnet","extensible","syntax-highlighting"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thomasjo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-03-23T11:34:50.000Z","updated_at":"2025-06-09T08:30:02.000Z","dependencies_parsed_at":"2024-06-19T20:03:24.925Z","dependency_job_id":"fb681df9-ce62-4ed7-b580-a4eadb250c90","html_url":"https://github.com/thomasjo/highlight","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/thomasjo/highlight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasjo%2Fhighlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasjo%2Fhighlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasjo%2Fhighlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasjo%2Fhighlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomasjo","download_url":"https://codeload.github.com/thomasjo/highlight/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasjo%2Fhighlight/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006426,"owners_count":26084105,"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-11T02:00:06.511Z","response_time":55,"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":["c-sharp","dotnet","extensible","syntax-highlighting"],"created_at":"2024-11-20T02:01:42.229Z","updated_at":"2025-10-11T06:03:24.910Z","avatar_url":"https://github.com/thomasjo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Highlight\nA relatively simple and extensible syntax highlighter written in C#.\n\n## TL;DR\n```powershell\nInstall-Package Highlight\n```\n\n```csharp\nvar highlighter = new Highlighter(new HtmlEngine());\nvar highlightedCode = highlighter.Highlight(\"C#\", csharpCode);\n```\n\n## Syntax definitions\nThe following is a list of all the definition names of syntaxes/languages that are supported out of the box;\n\n- ASPX\n- C\n- C++\n- C#\n- COBOL\n- Eiffel\n- Fortran\n- Haskell\n- HTML\n- Java\n- JavaScript\n- Mercury\n- MSIL\n- Pascal\n- Perl\n- PHP\n- Python\n- Ruby\n- SQL\n- Visual Basic\n- VBScript\n- VB.NET\n- XML\n\n## Output engines\nHighlight supports the notion of an output engine which makes it possible to get the syntax highlighted result output in any format. Out of the box Highlight support HTML, XML and RTF output formats.\n\nThe HtmlEngine supports inline styles which can be enabled by setting the **UseCss** property to **true**;\n\n```csharp\nvar highlighter = new Highlighter(new HtmlEngine { UseCss = true });\nvar highlightedCode = highlighter.Highlight(\"C#\", csharpCode);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasjo%2Fhighlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasjo%2Fhighlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasjo%2Fhighlight/lists"}