{"id":48367272,"url":"https://github.com/trackd/textmate","last_synced_at":"2026-04-05T15:03:38.774Z","repository":{"id":255683098,"uuid":"852769999","full_name":"trackd/TextMate","owner":"trackd","description":"PowerShell module render code/markdown with TextMate + Spectre.Console in the terminal","archived":false,"fork":false,"pushed_at":"2026-03-10T19:45:57.000Z","size":2407,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-11T01:21:05.710Z","etag":null,"topics":[],"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/trackd.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-05T11:53:13.000Z","updated_at":"2026-03-03T04:32:45.000Z","dependencies_parsed_at":"2025-02-10T09:22:26.429Z","dependency_job_id":"2c191f2c-0683-4fc8-9162-00d0396d5236","html_url":"https://github.com/trackd/TextMate","commit_stats":null,"previous_names":["trackd/pstextmate","trackd/textmate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trackd/TextMate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackd%2FTextMate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackd%2FTextMate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackd%2FTextMate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackd%2FTextMate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trackd","download_url":"https://codeload.github.com/trackd/TextMate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackd%2FTextMate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31439444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T13:13:19.330Z","status":"ssl_error","status_checked_at":"2026-04-05T13:13:17.778Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-04-05T15:03:22.733Z","updated_at":"2026-04-05T15:03:38.767Z","avatar_url":"https://github.com/trackd.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TextMate\r\n\r\nTextMate delivers syntax-aware highlighting for PowerShell on top of TextMate grammars. It exposes a focused set of cmdlets that emit tokenized, theme-styled `HighlightedText` renderables you can write directly or feed into any Spectre-based pipeline. Helper cmdlets make it easy to discover grammars and validate support for files, extensions, or language IDs before formatting.\r\n\r\nWhat it does\r\n\r\n- Highlights source text using TextMate grammars such as PowerShell, C#, Markdown, and Python.\r\n- Builtin pager, either through `-Page` or piping to `Out-Page`\r\n- Returns `HighlightedText` renderables that implement Spectre.Console's contract, so they can be written directly or through other Spectre hosts.\r\n- Provides discovery and testing helpers for installed grammars, extensions, or language IDs.\r\n- Sixel images in markdown.\r\n\r\n![Demo](./assets/demo.png)\r\n\r\n## Cmdlets\r\n\r\n| Cmdlet | Purpose |\r\n|--------|---------|\r\n| [Format-TextMate](docs/en-us/Format-TextMate.md) | Render text with an inferred or explicit language. |\r\n| [Format-CSharp](docs/en-us/Format-CSharp.md) | Highlight C# source |\r\n| [Format-Markdown](docs/en-us/Format-Markdown.md) | Highlight Markdown content |\r\n| [Format-PowerShell](docs/en-us/Format-PowerShell.md) | Highlight PowerShell code |\r\n| [Get-TextMateGrammar](docs/en-us/Get-TextMateGrammar.md) | List available grammars and file extensions. |\r\n| [Test-TextMate](docs/en-us/Test-TextMate.md) | Check support for a file, extension, or language ID. |\r\n| [Out-Page](docs/en-us/Out-Page.md) | Builtin terminal pager |\r\n\r\n```note\r\nFormat-CSharp/Markdown/Powershell is just syntactic sugar for Format-TextMate -Language CSharp/PowerShell/Markdown\r\n```\r\n\r\n## Examples\r\n\r\n```powershell\r\n# highlight a C# snippet\r\n\"public class C { void M() {} }\" | Format-CSharp\r\n\r\n# render a Markdown file with a theme\r\nGet-Content README.md -Raw | Format-Markdown -Theme SolarizedLight\r\n\r\n# FileInfo Object\r\nGet-Item .\\script.ps1 | Format-TextMate\r\n\r\n# list supported grammars\r\nGet-SupportedTextMate\r\n```\r\n\r\n## Installation\r\n\r\n```powershell\r\nInstall-Module TextMate\r\n```\r\n\r\n### Prerequisites\r\n\r\n- **PowerShell**: 7.4\r\n\r\n### Building from Source\r\n\r\n1. Clone this repository\r\n2. Open a terminal in the project directory\r\n3. Build the project:\r\n\r\n```powershell\r\n\u0026 .\\build.ps1\r\n```\r\n\r\n1. Import the module:\r\n\r\n```powershell\r\nImport-Module .\\output\\TextMate.psd1\r\n```\r\n\r\n## Contributing\r\n\r\n1. Fork the repository\r\n2. Create a feature branch\r\n3. Add tests for new functionality\r\n4. Update documentation as needed\r\n5. Submit a pull request\r\n\r\n## Dependencies\r\n\r\n- [TextMateSharp](https://github.com/danipen/TextMateSharp)  \r\n  - [OnigWrap](https://github.com/aikawayataro/Onigwrap)\r\n- [SpectreConsole](https://github.com/spectreconsole/spectre.console)  \r\n\r\n---\r\n\r\n[About TextMate](https://en.wikipedia.org/wiki/TextMate)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrackd%2Ftextmate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrackd%2Ftextmate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrackd%2Ftextmate/lists"}