Skip to content

Commit

Permalink
add docs about REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Mar 25, 2024
1 parent f6146be commit 46f444b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/docs/lips/REPL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,25 @@ description: features of Node.js and Web REPL
---

# REPL

## Web REPL

Web REPL you can access from [Home page](/) or as a [bookmarklet](/#bookmark) use
[jQuery Terminal](https://terminal.jcubic.pl/) and supports those features:
* syntax highlighting using [Prism.js](https://prismjs.com/),
* parentheses matching - when you type close parenthesis it will jump for a split second into it's
matching open parenthesis,
* auto indentation - when you press enter it auto indent and if you copy paste the code it will reformat it.
* doc string tooltip - when you hover over a symbol it will show the docstring in a tooltip

## Node.js REPL

Node.js version of the REPL, also supports syntax hightlighting and auto indentation. It also
supports [paste bracket mode from Node.js](https://github.com/nodejs/node/pull/47150) (added by
[Jakub T. Jankiewicz](https://jcubic.pl/me) and released in
[v20.6.0](https://nodejs.org/en/blog/release/v20.6.0)), to properly handle copy-paste of Scheme
code.

In the future the Node.js REPL may also support parentheses matching. It's supported by
[CLisp](https://www.gnu.org/software/clisp/) and [Common Lisp](https://common-lisp.net/)
interpreter.

0 comments on commit 46f444b

Please sign in to comment.