{"id":13877491,"url":"https://github.com/cloudhead/hijs","last_synced_at":"2025-08-20T23:32:52.990Z","repository":{"id":941838,"uuid":"717687","full_name":"cloudhead/hijs","owner":"cloudhead","description":"simple \u0026 fast javascript syntax highlighting for the browser","archived":false,"fork":false,"pushed_at":"2015-07-16T01:49:33.000Z","size":121,"stargazers_count":240,"open_issues_count":3,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-09T18:11:40.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/cloudhead.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":"2010-06-12T19:15:30.000Z","updated_at":"2023-09-08T16:27:00.000Z","dependencies_parsed_at":"2022-07-15T20:30:38.538Z","dependency_job_id":null,"html_url":"https://github.com/cloudhead/hijs","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/cloudhead%2Fhijs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fhijs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fhijs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fhijs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudhead","download_url":"https://codeload.github.com/cloudhead/hijs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230471175,"owners_count":18231193,"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":[],"created_at":"2024-08-06T08:01:03.411Z","updated_at":"2024-12-19T17:08:39.388Z","avatar_url":"https://github.com/cloudhead.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"hijs\n====\n\n\u003e hijs is a dead-simple syntax highlighter for JavaScript code on the browser.\n\nBy default, it highlights everything inside `\u003ccode\u003e` blocks.\n\nIf you have command-line snippets, such as:\n\n    $ ls -l \u003e /dev/null\n\nit will skip those, cause they ain't no JavaScript.\n\nusage\n-----\n\nPut this at the end of your `\u003cbody\u003e`:\n\n    \u003cscript src=\"hijs.js\"\u003e\u003c/script\u003e\n\nIf you would like to specify what gets highlighted, set the global `hijs` variable before you include the script:\n\n    window.hijs = '.highlight';\n\nexample\n-------\n\nCode extract from http-console, highlighted by `hijs`:\n\n![screenshot](http://dl.dropbox.com/u/251849/hijs-example.png)\n\nphilosophy\n----------\n\nhijs is a simple solution to a potentially complicated problem. It won't\nfit all your needs, but if what you're trying to achieve is simple enough,\nhijs might be the tool for you.\n\nstyling\n-------\n\nhijs wraps tokens in `\u003cspan\u003e` tags. You can style them like so:\n\n    code .keyword              { font-weight: bold }\n    code .string, code .regexp { color: green }\n    code .class, code .special { color: blue }\n    code .number               { color: pink }\n    code .comment              { color: grey }\n\nmore info\n---------\n\n**RTFC**\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudhead%2Fhijs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudhead%2Fhijs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudhead%2Fhijs/lists"}