Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ballerina/highlightjs-ballerina

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ballerina/highlightjs-ballerina

Ballerina language support for highlight.js

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by180%
Maintainers
2
Weekly downloads
 
Created
Source

The Ballerina programming language

GitHub (pre-)release GitHub (Pre-)Release Date GitHub last commit License Twitter Follow

Ballerina is a statically typed, open-source cloud-native programming language developed and supported by WSO2.

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

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.

Usage

The first step in setting up syntax highlighting for Ballerina is to setup 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.

<!-- stylesheet -->
<link rel="stylesheet" href="https://unpkg.com/highlightjs/styles/vs.css" />

<!-- scripts -->
<script type="text/javascript" src="/path/to/highlight.min.js"></script>
<script type="text/javascript" src="/path/to/ballerina.min.js"></script>
<script type="text/javascript">
	hljs.highlightAll();
</script>

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.

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.

Author

Keywords

FAQs

Package last updated on 28 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc