1. jade-highlighter
A robust syntax highlighter for jade in node.js
jade-highlighter
Package: jade-highlighter
Created by: ForbesLindesay
Last modified: Sun, 19 Jun 2022 03:34:59 GMT
Version: 2.0.0
License: MIT
Downloads: 3,151
Repository: https://github.com/ForbesLindesay/jade-brackets

Install

npm install jade-highlighter
yarn add jade-highlighter

Jade Tools

This repository houses the source code that generates three different tools to help you program in jade:

  • jade-brackets: the official jade plugin for the brackets editor
  • jade-highlight: a syntax highlighter for highlighting jade in node.js
  • jade-code-mirror: a browserifyable npm library that adds jade support to code-mirror

There's also the raw CodeMirror mode in /lib/mode.js

Build Status
Dependency Status

jade-brackets

This is the official jade plugin for Brackets. Brackets is the recommended editor for jade.

jade-highlight

A simple syntax highlighter for jade.

NPM version

Installation

npm install jade-highlight

Usage

 var jade = require('jade-highlight');

// Optionally register additional languages to highlight filters etc. (by default html, js, css and markdown are supported)
jade.loadMode('java');

// Get the html code produced from highlighting using jade
var html = jade('string of jade code here', {options});

jade-code-mirror

A code mirror mode for jade neatly packaged as a proper little npm module with a peer dependency.

Installation

npm install jade-code-mirror

Usage

 var CodeMirror = require('jade-code-mirror');

var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
  mode: 'jade',
  lineNumbers: true
});

License

MIT

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code