{"id":16255644,"url":"https://github.com/grena/codehighlighting-for-tinymce","last_synced_at":"2026-01-21T12:34:42.542Z","repository":{"id":3675032,"uuid":"4744434","full_name":"grena/codehighlighting-for-TinyMCE","owner":"grena","description":"SyntaxHighlighter Plug-in for Tinymce 3.X version","archived":false,"fork":false,"pushed_at":"2012-06-23T15:29:49.000Z","size":106,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-07T19:58:22.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grena.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-21T21:05:48.000Z","updated_at":"2014-08-30T12:22:46.000Z","dependencies_parsed_at":"2022-08-19T01:00:26.651Z","dependency_job_id":null,"html_url":"https://github.com/grena/codehighlighting-for-TinyMCE","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/grena/codehighlighting-for-TinyMCE","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grena%2Fcodehighlighting-for-TinyMCE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grena%2Fcodehighlighting-for-TinyMCE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grena%2Fcodehighlighting-for-TinyMCE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grena%2Fcodehighlighting-for-TinyMCE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grena","download_url":"https://codeload.github.com/grena/codehighlighting-for-TinyMCE/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grena%2Fcodehighlighting-for-TinyMCE/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28632833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2024-10-10T15:43:32.870Z","updated_at":"2026-01-21T12:34:42.526Z","avatar_url":"https://github.com/grena.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# codehighlighting-for-TinyMCE\r\n\r\n## What's this ?\r\ncodehighlighting-for-TinyMCE is **a plugin for tinyMCE** editor.\r\n\r\n## What does it do ?\r\nIt allows you to put some content in your TinyMCE editor which can be colored by SyntaxHighlighter.   \r\nSee a preview of what it looks like in your TinyMCE editor :  \r\n![codehighlighting in TinyMCE](http://box.grena.fr/images/demo.jpg)\r\n\r\n## What do I need ?\r\n- This projet is a plugin for TinyMCE, so your naturally need **TinyMCE** ([here](http://www.tinymce.com/))\r\n- This plugin prepare the code to be colored by **SyntaxHighlighter** which you can find [here](http://alexgorbatchev.com/SyntaxHighlighter/).\r\n\r\n## How do I use it ?\r\nJust put the **codehighlighting** folder in your TinyMCE plugins folder `tiny_mce/plugins/__here__`.  \r\nNo we need to activate the plugin. When you initialize your TinyMCE, please add :\r\n\u003cpre\u003e\u003ccode\u003e\r\ntinyMCE.init({ \r\n\t\t\tremove_linebreaks : false, \r\n\t\t\tplugins : \"...,...,...,codehighlighting\",\r\n\t\t\ttheme_advanced_buttons3 : \"...,...,...,codehighlighting\",\r\n\t\t\textended_valid_elements : \"..., pre[class|name]\",\r\n\t\t\t...\r\n});\r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\n- **remove_linebreaks** : By default TinyMCE strips out all the line breaks in your content to create a single line of HTML.\r\n- **plugins** : Because TinyMCE have to know which plugins load.\r\n- **theme\\_advanced\\_buttons3** : Just the place where TinyMCE have to put the new button.\r\n- **extended_valid_elements** : TinyMCE controls validity of HTML elements, we now allow class and name for `\u003cpre\u003e` elements.\r\n\r\n## What else ?\r\n_SyntaxHighlighter Plug-in for Tinymce 3.X is a plugin initially developped by nawaf (see [this link](http://weblogs.asp.net/nawaf/archive/2008/04/10/syntaxhighlighter-plug-in-for-tinymce-3-x-wysiwyg-editor.aspx) ) but the problem is that it's quite old and uses the `\u003ctextarea\u003e` element which it not recognize by SyntaxHighlighter and doesn't offer a lot of option, so I rewrote the plugin to be used with `\u003cpre\u003e` and to be able to use more options that offer **SyntaxHighlighter**.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrena%2Fcodehighlighting-for-tinymce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrena%2Fcodehighlighting-for-tinymce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrena%2Fcodehighlighting-for-tinymce/lists"}