{"id":23537724,"url":"https://github.com/prod3v3loper/syntaxo","last_synced_at":"2026-03-02T05:32:36.486Z","repository":{"id":57044856,"uuid":"89611129","full_name":"prod3v3loper/syntaxo","owner":"prod3v3loper","description":"🔮 Highlight your Syntax with one small php class 14.76 KiB and gzip: 4.03 KiB","archived":false,"fork":false,"pushed_at":"2024-05-14T00:27:34.000Z","size":2594,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T16:25:15.138Z","etag":null,"topics":["composer","css","highlighter","highlighting","html","javascript","less","mysql","packigist","perl","php","sass","syntax","syntax-highlighter","syntax-highlighting","syntax-theme","syntaxhighlighter"],"latest_commit_sha":null,"homepage":"https://www.tnado.com/open-source-projects-by-prod3v3loper/","language":"PHP","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/prod3v3loper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-04-27T15:13:02.000Z","updated_at":"2024-05-14T00:28:46.000Z","dependencies_parsed_at":"2024-05-14T01:49:04.680Z","dependency_job_id":null,"html_url":"https://github.com/prod3v3loper/syntaxo","commit_stats":{"total_commits":74,"total_committers":5,"mean_commits":14.8,"dds":0.472972972972973,"last_synced_commit":"da81f58dfd8072ef31625e803e3bb2f938fd79d5"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/prod3v3loper/syntaxo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prod3v3loper%2Fsyntaxo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prod3v3loper%2Fsyntaxo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prod3v3loper%2Fsyntaxo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prod3v3loper%2Fsyntaxo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prod3v3loper","download_url":"https://codeload.github.com/prod3v3loper/syntaxo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prod3v3loper%2Fsyntaxo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29993376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"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":["composer","css","highlighter","highlighting","html","javascript","less","mysql","packigist","perl","php","sass","syntax","syntax-highlighter","syntax-highlighting","syntax-theme","syntaxhighlighter"],"created_at":"2024-12-26T03:19:05.276Z","updated_at":"2026-03-02T05:32:36.463Z","avatar_url":"https://github.com/prod3v3loper.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Melabuai Logo](https://raw.githubusercontent.com/prod3v3loper/syntaxo/master/img/icon-MB.png \"Melabuai Brand\")\n\n![Language](https://img.shields.io/github/languages/top/prod3v3loper/syntaxo.svg?style=flat \"Language\")\n![Packgist PHP Version](https://img.shields.io/packagist/php-v/prod3v3loper/syntaxo.svg?style=flat \"Packgist PHP Version\")\n[![Packagist Version](https://img.shields.io/packagist/v/prod3v3loper/syntaxo.svg?style=flat \"Packigist Version\")](https://packagist.org/packages/prod3v3loper/syntaxo \"Packigist Version\")\n![Repo Siz](https://img.shields.io/github/repo-size/prod3v3loper/syntaxo.svg?style=flat \"Repo Size\")\n![Code Siz](https://img.shields.io/github/languages/code-size/prod3v3loper/syntaxo.svg?style=flat \"Code Size\")\n![Github Release date](https://img.shields.io/github/release/prod3v3loper/syntaxo.svg?style=flat \"Github Release date\")\n[![MIT License](https://img.shields.io/packagist/l/prod3v3loper/syntaxo.svg?style=flat \"MIT License\")](https://github.com/prod3v3loper/syntaxo/blob/master/LICENSE \"MIT License\")\n[![Website](https://img.shields.io/website-up-down-green-red/https/www.tnado.com/open-source-projects-by-prod3v3loper.svg?style=flat \"Website\")](https://www.tnado.com/open-source-projects-by-prod3v3loper/ \"Website\")\n\n**melabuai**\n\n# 🔮 SYNTAXO\n\nMulti Syntax Highlighter programmed with PHP. Immediately ready for use and can be used anywhere in seconds.\n\n[Theme Page of this Site](https://prod3v3loper.github.io/syntaxo/)                                            \n\n![Size](https://img.shields.io/github/size/prod3v3loper/syntaxo/src/Syntaxo.php.svg \"Size\")\n\n- HTML\n- CSS\n- LESS\n- SASS\n- JavaScript\n- PHP\n- MySQL\n- Perl\nAnd many more...\n\n# Usage\n\nVery easy to use and very easy to modify. All you have to do is to include the file, instantiate the class, and call the method method with the string.\n\n## Packagist with Composer\n\nThis solution extends the vendor autoloader because it calls the files with certain criteria. The extension allows you to call classes wherever the Autloder is involved.\n\nDownload [Composer](https://getcomposer.org/) local or global. Check for more [Tutorial - NetBeans with Composer and Packagist](https://www.tnado.com/blog/netbeans-with-composer-and-packagist-the-php-package-manager/) for this one.\n\nYou found the package on [Packigist - Syntaxo](https://packagist.org/packages/prod3v3loper/syntaxo).\n\nAdd the Syntaxo dependencie to the **composer.json** and set the autoload.\n```json\n{\n    \"autoload\": {\n        \"psr-4\": { \"Syn\\\\\": \"src/\" }\n    },\n    \"require\": {\n        \"prod3v3loper/syntaxo\": \"\u003e=1.0\"\n    },\n```\n\nNow run the composer install command with php\n```\nphp composer.phar install\n```\n\n`index.php`\n```php\nrequire_once __DIR__ . '/vendor/autoload.php';\n$HIGHLIGHT = new \\Syn\\Syntaxo();\necho $HIGHLIGHT-\u003eprocess('\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"utf-8\"\u003e\n    \u003ctitle\u003eHighlight\u003c/title\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003c!-- Content --\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n');\n```\n\n## Git Install\n\n```\ngit clone https://github.com/prod3v3loper/syntaxo.git /Users/username/projects/\n```\n\nGet per [Git](https://git-scm.com/) or [download](https://github.com/prod3v3loper/syntaxo/archive/master.zip) and use it.\n\n`index.php`\n```php\nrequire_once './src/Syntaxo.php';\n$HIGHLIGHT = new \\Syn\\Syntaxo();\necho $HIGHLIGHT-\u003eprocess('\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"utf-8\"\u003e\n    \u003ctitle\u003eHighlight\u003c/title\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003c!-- Content --\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n');\n```\n\n\u003cdiv align=\"center\"\u003e\n\n# REGEX MODIFY\n\n\u003c/div\u003e\n\nHere's a snippet of Syntaxo regex for comments on each language. And you can modify them as needed and get even better results.\n\n```php\n// HTML\n\"/(\u0026lt;\\!\\-\\-[[:space:]]*.*[[:space:]]*\\-\\-\u0026gt;)/isU\" =\u003e '\u003cspan class=\"c\"\u003e\\\\1\u003c/span\u003e',\n// JavaScript\n\"/(\\/\\/.*\\n+)/isU\" =\u003e '\u003cspan class=\"c\"\u003e\\\\1\u003c/span\u003e',\n// CSS\n\"/(?\u003c!\\w)((\\/\\*\\s*|\\*\\s*)([^\\[|\\#]*)(\\*\\/)?)/i\" =\u003e '\u003cspan class=\"c\"\u003e\\\\1\u003c/span\u003e',\n```\n\n# Preview\n\n![The index.php preview](https://prod3v3loper.github.io/syntaxo/img/syntaxo-multi-syntax-highlighter.png \"The index.php preview\")\n\n# Contribute\n\nPlease read the [contributing](https://github.com/prod3v3loper/syntaxo/blob/main/CONTRIBUTING.md).\n\n# Authors\n\n**Samet Tarim** [prod3v3loper](https://www.tnado.com/author/prod3v3loper/)\n\n# License\n\n[MIT](https://github.com/prod3v3loper/syntaxo/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprod3v3loper%2Fsyntaxo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprod3v3loper%2Fsyntaxo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprod3v3loper%2Fsyntaxo/lists"}