{"id":18718543,"url":"https://github.com/highlightjs/highlightjs-ballerina","last_synced_at":"2025-08-07T01:04:55.564Z","repository":{"id":191165838,"uuid":"683909345","full_name":"highlightjs/highlightjs-ballerina","owner":"highlightjs","description":"Ballerina language grammar for Highlight.js","archived":false,"fork":false,"pushed_at":"2023-08-31T01:11:55.000Z","size":32,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-19T17:54:52.476Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/highlightjs.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-08-28T03:29:59.000Z","updated_at":"2023-08-31T01:37:32.000Z","dependencies_parsed_at":"2024-01-30T00:02:19.534Z","dependency_job_id":"a63d45d9-8072-48f9-9a16-aa81d9d056f9","html_url":"https://github.com/highlightjs/highlightjs-ballerina","commit_stats":null,"previous_names":["highlightjs/highlightjs-ballerina"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/highlightjs/highlightjs-ballerina","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-ballerina","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-ballerina/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-ballerina/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-ballerina/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/highlightjs","download_url":"https://codeload.github.com/highlightjs/highlightjs-ballerina/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-ballerina/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269181060,"owners_count":24373854,"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","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"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":[],"created_at":"2024-11-07T13:21:52.199Z","updated_at":"2025-08-07T01:04:55.427Z","avatar_url":"https://github.com/highlightjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \t\u003cimg height=\"auto\" width=\"50%\" src=\"./ballerina-swan-lake-logo.svg\" alt=\"Ballerina Logo\"/\u003e\n\u003c/div\u003e\n\n# The Ballerina programming language\n\n[![GitHub (pre-)release](https://img.shields.io/github/release/ballerina-platform/ballerina-lang/all.svg)](https://github.com/ballerina-platform/ballerina-lang/releases)\n[![GitHub (Pre-)Release Date](https://img.shields.io/github/release-date-pre/ballerina-platform/ballerina-lang.svg)](https://github.com/ballerina-platform/ballerina-lang/releases)\n[![GitHub last commit](https://img.shields.io/github/last-commit/ballerina-platform/ballerina-lang.svg)](https://github.com/ballerina-platform/ballerina-lang/commits/master)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n![Twitter Follow](https://img.shields.io/twitter/follow/ballerinalang?style=social)\n\n[Ballerina](https://ballerina.io/) is a statically typed, open-source, cloud-native programming language developed\nand supported by [WSO2](https://wso2.com/).\n\nWith Ballerina, you could easily develop microservices, API endpoints and integrations,\nand any other application for the cloud. Additionally, Ballerina has all the general-purpose\nfunctionalities you could expect from a modern programming language.\n\nWith Ballerina's compiler-level built-in support for widely used data types such\nas JSON and XML, your focus on handling structured data, network service interactions,\nand dealing with concurrency is made much more effective.\n\n#### Providing and consuming services\nIt has inherently concurrent first-class language constructs for providing and consuming services.\n\n#### Sequence diagrams\nThe sequence diagram-based graphical view shows the most fundamental aspect of the semantics of a network-distributed application.\n\n#### Structural typing\nIt allows for looser coupling between distributed components and eliminates the friction of data binding.\n\n#### Metadata\nExtensible metadata enables easy integration of Ballerina programs with cloud platforms.\nYou could directly generate Docker and Kubernetes artifacts straight away from\nthe source code.\n\n# highlightjs-ballerina\n\nThis repository offers `highlight.js` support for [Ballerina](https://ballerina.io).\n\n## Usage\n\nThe first step in setting up syntax highlighting for Ballerina is to set up `highlight.js` library in your webpage or the node app.\n\n### Static website or simple usage\n\nAfter loading `highlight.js`, load the CDN build of Ballerina located in the `dist` folder.\n\n```html\n\u003c!-- stylesheet --\u003e\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/highlightjs/styles/vs.css\" /\u003e\n\n\u003c!-- scripts --\u003e\n\u003cscript type=\"text/javascript\" src=\"/path/to/highlight.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"/path/to/ballerina.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n\thljs.highlightAll();\n\u003c/script\u003e\n```\n\n### With node or another build system\n\nIf you're using Node / Webpack / Rollup / Browserify, etc., simply require the language module, then register it with Highlight.js.\n\n```js\nvar hljs = require('highlightjs');\nvar hljsBallerina = require('@ballerina/highlightjs-ballerina');\n\nhljs.registerLanguage('ballerina', hljsBallerina);\nhljs.highlightAll();\n```\n\n## License\n\nBallerina code is distributed under [Apache license 2.0](https://github.com/ballerina-platform/ballerina-lang/blob/master/LICENSE).\n\n## Author\n\n\n\n## Links\n\n- The official site for the Highlight.js library is \u003chttps://highlightjs.org/\u003e.\n- The Highlight.js GitHub project: \u003chttps://github.com/highlightjs/highlight.js\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-ballerina","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhighlightjs%2Fhighlightjs-ballerina","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-ballerina/lists"}