{"id":21647858,"url":"https://github.com/markknol/html-haxe-code-highlighter","last_synced_at":"2025-03-20T01:54:33.700Z","repository":{"id":69819688,"uuid":"128752429","full_name":"markknol/html-haxe-code-highlighter","owner":"markknol","description":"Basic Haxe code highlighting for HTML ","archived":false,"fork":false,"pushed_at":"2018-05-01T09:09:57.000Z","size":12,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T05:11:30.659Z","etag":null,"topics":["css","haxe","highlighter","highlighting","hxml"],"latest_commit_sha":null,"homepage":null,"language":"Haxe","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/markknol.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-09T10:08:00.000Z","updated_at":"2019-05-10T07:43:24.000Z","dependencies_parsed_at":"2023-06-15T05:45:47.700Z","dependency_job_id":null,"html_url":"https://github.com/markknol/html-haxe-code-highlighter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markknol%2Fhtml-haxe-code-highlighter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markknol%2Fhtml-haxe-code-highlighter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markknol%2Fhtml-haxe-code-highlighter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markknol%2Fhtml-haxe-code-highlighter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markknol","download_url":"https://codeload.github.com/markknol/html-haxe-code-highlighter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244536441,"owners_count":20468349,"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":["css","haxe","highlighter","highlighting","hxml"],"created_at":"2024-11-25T06:52:00.650Z","updated_at":"2025-03-20T01:54:33.680Z","avatar_url":"https://github.com/markknol.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Haxe Code Highlighter for HTML\n[![Build Status](https://travis-ci.org/markknol/html-haxe-code-highlighter.svg?branch=master)](https://travis-ci.org/markknol/html-haxe-code-highlighter)\n[![Haxelib Version](https://img.shields.io/github/tag/markknol/html-haxe-code-highlighter.svg?label=haxelib)](http://lib.haxe.org/p/p/html-haxe-code-highlighter)\n\nBasic runtime Haxe code highlighting. Formerly used on haxe.org website. \n\n## Basic Installation\n\nIf you just want the highlighting, you can download and use the .js and .css files:\n\n1. Download \u003cbin/highlighter.js\u003e and add `\u003cscript src=\"highlighter.js\"\u003e\u003c/script\u003e` to your HTML.\n2. Download \u003cbin/highlighter.min.css\u003e and add `\u003clink rel=\"stylesheet\" href=\"highlighter.min.css\" /\u003e` to your HTML.\n\n## Installation using sources\n\nIf you want to integrate the highlighting in your project, install using [Haxelib](https://lib.haxe.org/p/html-haxe-code-highlighter/):\n\n```\nhaxelib install html-haxe-code-highlighter\n```\n\nTo use in code, add to your build hxml:\n\n```\n-lib html-haxe-code-highlighter\n```\n\n### API\n\n * `Highlighter.highlight(?container:js.html.Element)`\n   (_JS target only_) Adds highlighting to all `\u003ccode class=\"prettyprint haxe\"\u003e` and `\u003ccode class=\"prettyprint hxml\"\u003e` tags in the given element. If container is null, then document body element is used.\n   \n * `Highlighter.syntaxHighlightHaxe(code:String)`\n   Syntax highlight Haxe code. Returns code as formatted HTML text.\n   \n * `Highlighter.syntaxHighlightHXML(code:String)`\n   Syntax highlight HXML. Returns code as formatted HTML text.\n   \n### CSS classes\n\nThe following css classes are applied\n\n| Description | CSS class |\n|---|---|\n| Reserved keywords | .kwd |\n| Reserved values | .val |\n| Types | .type |\n| Strings | .str |\n| Regexp | .ereg |\n| Comments | .cmt |\n\n---\n\n Build with [Haxe](https://haxe.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkknol%2Fhtml-haxe-code-highlighter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkknol%2Fhtml-haxe-code-highlighter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkknol%2Fhtml-haxe-code-highlighter/lists"}