{"id":21962212,"url":"https://github.com/antoniotejada/trilium-syntaxhighlightwidget","last_synced_at":"2025-07-24T05:32:34.331Z","repository":{"id":41494569,"uuid":"486571551","full_name":"antoniotejada/Trilium-SyntaxHighlightWidget","owner":"antoniotejada","description":"Syntax highlight Trilium widget for editable note codeblocks using highlight.js","archived":false,"fork":false,"pushed_at":"2022-09-11T07:37:12.000Z","size":29,"stargazers_count":84,"open_issues_count":8,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-30T03:41:09.024Z","etag":null,"topics":["ckeditor-plugin","ckeditor5","ckeditor5-plugin","highlightjs","trilium","trilium-notebook","trilium-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antoniotejada.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":"2022-04-28T11:47:05.000Z","updated_at":"2025-01-28T23:36:07.000Z","dependencies_parsed_at":"2023-01-18T03:25:11.958Z","dependency_job_id":null,"html_url":"https://github.com/antoniotejada/Trilium-SyntaxHighlightWidget","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/antoniotejada%2FTrilium-SyntaxHighlightWidget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoniotejada%2FTrilium-SyntaxHighlightWidget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoniotejada%2FTrilium-SyntaxHighlightWidget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoniotejada%2FTrilium-SyntaxHighlightWidget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antoniotejada","download_url":"https://codeload.github.com/antoniotejada/Trilium-SyntaxHighlightWidget/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250515155,"owners_count":21443330,"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":["ckeditor-plugin","ckeditor5","ckeditor5-plugin","highlightjs","trilium","trilium-notebook","trilium-plugin"],"created_at":"2024-11-29T10:35:33.665Z","updated_at":"2025-04-23T21:20:38.252Z","avatar_url":"https://github.com/antoniotejada.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trilium-SyntaxHighlightWidget\r\n\r\nSyntax highlight [Trilium](https://github.com/zadam/trilium/) widget for editable note codeblocks using [highlight.js](https://github.com/highlightjs/highlight.js)\r\n\r\n## Features\r\n- Live syntax highlighting of any codeblock inside a text note using automatic language detection, unless plaintext is selected.\r\n- The highlighting is not saved as formatting with the note, but just view-time markers like that highlighting that happens when you do searching.\r\n\r\n## Installation\r\n- Create a code note of type JS Frontend with the contents of [SyntaxHighlightWidget.js](SyntaxHighlightWidget.js) and the label #widget\r\n- Attach the [highlight.min.js](https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js) file to that note\r\n- To enable debug output, set the code note #debugLevel attribute to one of error, warn, info, log, debug (default is info)\r\n\r\n## Todo \r\n- Honor language attribute when different from plaintext instead of using automatic?\r\n- Allow specifying the style sheet as code and/or text note attribute?\r\n- Readonly note support?\r\n\r\n## Discussions\r\n\r\nhttps://github.com/zadam/trilium/discussions/2822\r\n\r\n## Video\r\n\r\nhttps://user-images.githubusercontent.com/6446344/165748493-ef5ad3b5-b89b-440e-b942-e105083dfada.mp4","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoniotejada%2Ftrilium-syntaxhighlightwidget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoniotejada%2Ftrilium-syntaxhighlightwidget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoniotejada%2Ftrilium-syntaxhighlightwidget/lists"}