https://github.com/highlightjs/highlightjs-ballerina
Ballerina language grammar for Highlight.js
https://github.com/highlightjs/highlightjs-ballerina
Last synced: 4 months ago
JSON representation
Ballerina language grammar for Highlight.js
- Host: GitHub
- URL: https://github.com/highlightjs/highlightjs-ballerina
- Owner: highlightjs
- License: apache-2.0
- Created: 2023-08-28T03:29:59.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-31T01:11:55.000Z (over 2 years ago)
- Last Synced: 2025-04-19T17:54:52.476Z (8 months ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Ballerina programming language
[](https://github.com/ballerina-platform/ballerina-lang/releases)
[](https://github.com/ballerina-platform/ballerina-lang/releases)
[](https://github.com/ballerina-platform/ballerina-lang/commits/master)
[](https://opensource.org/licenses/Apache-2.0)

[Ballerina](https://ballerina.io/) is a statically typed, open-source, cloud-native programming language developed
and supported by [WSO2](https://wso2.com/).
With Ballerina, you could easily develop microservices, API endpoints and integrations,
and any other application for the cloud. Additionally, Ballerina has all the general-purpose
functionalities you could expect from a modern programming language.
With Ballerina's compiler-level built-in support for widely used data types such
as JSON and XML, your focus on handling structured data, network service interactions,
and dealing with concurrency is made much more effective.
#### Providing and consuming services
It has inherently concurrent first-class language constructs for providing and consuming services.
#### Sequence diagrams
The sequence diagram-based graphical view shows the most fundamental aspect of the semantics of a network-distributed application.
#### Structural typing
It allows for looser coupling between distributed components and eliminates the friction of data binding.
#### Metadata
Extensible metadata enables easy integration of Ballerina programs with cloud platforms.
You could directly generate Docker and Kubernetes artifacts straight away from
the source code.
# highlightjs-ballerina
This repository offers `highlight.js` support for [Ballerina](https://ballerina.io).
## Usage
The first step in setting up syntax highlighting for Ballerina is to set up `highlight.js` library in your webpage or the node app.
### Static website or simple usage
After loading `highlight.js`, load the CDN build of Ballerina located in the `dist` folder.
```html
hljs.highlightAll();
```
### With node or another build system
If you're using Node / Webpack / Rollup / Browserify, etc., simply require the language module, then register it with Highlight.js.
```js
var hljs = require('highlightjs');
var hljsBallerina = require('@ballerina/highlightjs-ballerina');
hljs.registerLanguage('ballerina', hljsBallerina);
hljs.highlightAll();
```
## License
Ballerina code is distributed under [Apache license 2.0](https://github.com/ballerina-platform/ballerina-lang/blob/master/LICENSE).
## Author
## Links
- The official site for the Highlight.js library is .
- The Highlight.js GitHub project: