{"_id":"@ballerina/highlightjs-ballerina","_rev":"4-f103a1be93b4fd74912d463b1c154e88","name":"@ballerina/highlightjs-ballerina","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@ballerina/highlightjs-ballerina","version":"1.0.0","keywords":["Ballerina","hljs","highlightjs","highlight.js"],"author":{"name":"WSO2"},"license":"Apache-2.0","_id":"@ballerina/highlightjs-ballerina@1.0.0","maintainers":[{"name":"yasith","email":"yasith.18@cse.mrt.ac.lk"},{"name":"kaviththiranga","email":"kaviththiranga@gmail.com"}],"dist":{"shasum":"8f9613d3250aaceac6a2e3122a725700eb832ef0","tarball":"https://registry.npmjs.org/@ballerina/highlightjs-ballerina/-/highlightjs-ballerina-1.0.0.tgz","fileCount":18,"integrity":"sha512-t+uw6quLwYN8Dpy8RfPL/zyIwXBouGZJBdr2SgNH+oT7TuQWf7oZUKKDYhKgolCIPFDvGcZFZid2U8uTuNtRPg==","signatures":[{"sig":"MEUCIDv9QnzENqYi5KQWW90+wVl3aNH0Det4YU9jnztW7Wh9AiEArIBFB5Y0bJjsZvhgtX/lfutRho0IUeFXIrBIIcG6UQQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58456},"main":"src/languages/ballerina.js","gitHead":"2d52d302591ccd37855cfd9a8117834b58887728","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"yasith","email":"yasith.18@cse.mrt.ac.lk"},"_npmVersion":"8.19.4","description":"Ballerina language support for highlight.js","directories":{},"_nodeVersion":"16.20.2","_hasShrinkwrap":false,"devDependencies":{"highlight.js":"^11.8.0"},"_npmOperationalInternal":{"tmp":"tmp/highlightjs-ballerina_1.0.0_1693211563815_0.5636894940362591","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@ballerina/highlightjs-ballerina","version":"1.0.1","keywords":["Ballerina","hljs","highlightjs","highlight.js"],"author":{"name":"WSO2"},"license":"Apache-2.0","_id":"@ballerina/highlightjs-ballerina@1.0.1","maintainers":[{"name":"yasith","email":"yasith.18@cse.mrt.ac.lk"},{"name":"kaviththiranga","email":"kaviththiranga@gmail.com"}],"dist":{"shasum":"ba053daf89a04ae0811157d5581ef76148226049","tarball":"https://registry.npmjs.org/@ballerina/highlightjs-ballerina/-/highlightjs-ballerina-1.0.1.tgz","fileCount":18,"integrity":"sha512-FOgWHYLhNhAk0i9gjB8+K2x52lGN44xLgvCNYduoQzPFG89qwtEtFk3guE8w8v7xRUNno6mlqn2bF6dG316mYg==","signatures":[{"sig":"MEUCIAItmXI5Uv01d3NqBYfrqeAu8kDL9GnnYzoEyhAo5sKgAiEA5bPh9NZuM48NZ9PRsuW42gXBOqKb8jIxxAfCe/qy258=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58467},"main":"src/languages/ballerina.js","gitHead":"1755570511879f1e5250225e61a73a7d7adfd505","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"yasith","email":"yasith.18@cse.mrt.ac.lk"},"_npmVersion":"8.19.4","description":"Ballerina language support for highlight.js","directories":{},"_nodeVersion":"16.20.2","_hasShrinkwrap":false,"devDependencies":{"highlight.js":"^11.8.0"},"_npmOperationalInternal":{"tmp":"tmp/highlightjs-ballerina_1.0.1_1693212790095_0.8805542021559822","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-08-28T08:32:43.699Z","modified":"2025-10-03T07:33:57.138Z","1.0.0":"2023-08-28T08:32:44.015Z","1.0.1":"2023-08-28T08:53:10.277Z"},"author":{"name":"WSO2"},"license":"Apache-2.0","keywords":["Ballerina","hljs","highlightjs","highlight.js"],"description":"Ballerina language support for highlight.js","maintainers":[{"email":"kaviththiranga@gmail.com","name":"kaviththiranga"},{"email":"chamupathi@wso2.com","name":"gigara2"}],"readme":"![](./ballerina-logo-white.svg)\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\nSequence 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 setup `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<!-- stylesheet -->\n<link rel=\"stylesheet\" href=\"https://unpkg.com/highlightjs/styles/vs.css\" />\n\n<!-- scripts -->\n<script type=\"text/javascript\" src=\"/path/to/highlight.min.js\"></script>\n<script type=\"text/javascript\" src=\"/path/to/ballerina.min.js\"></script>\n<script type=\"text/javascript\">\n\thljs.highlightAll();\n</script>\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 <https://highlightjs.org/>.\n- The Highlight.js GitHub project: <https://github.com/highlightjs/highlight.js>","readmeFilename":"README.md"}