Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Syntax highlighting for JavaScript and TypeScript for the GNU nano text editor.

Installation

  1. Clone the repository:
git clone https://github.com/nousantx/javascript-nanorc.git
  1. Open your nano configuration file:
nano ~/.nanorc
  1. Add the following lines (adjust the path to where you cloned the repository):
include ~/javascript-nanorc/js.nanorc
include ~/javascript-nanorc/ts.nanorc

Supported File Types

  • .js - JavaScript
  • .mjs - ES Module JavaScript
  • .cjs - CommonJS
  • .jsx - JavaScript with JSX
  • .json - JSON
  • .ts - TypeScript
  • .tsx - TypeScript with JSX

Usage

After installation, open any JavaScript or TypeScript file in nano:

nano myfile.js
nano myfile.ts

Syntax highlighting will be applied automatically based on the file extension.

Releases

Packages

Contributors