Auto Close

Overview

The AutoClose component closes paired characters, such as brackets and quotes.

Usage

Register the AutoClose component:

import { RyuseiCode, AutoClose } from '@ryusei/code';
RyuseiCode.compose( { AutoClose } );
JavaScript

or import the file:

<script src="path-to-the-file/auto-close.min.js"></script>
HTML

Options

Setting false to autoClose disables the extension.

new RyuseiCode( { autoClose: false } );
JavaScript
The Language object determines what characters should be handled. By creating a custom Language, you can customize the default behaviour.