You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Editor:** allow folding lines and regions ([984c913](https://github.com/live-codes/livecodes/commit/984c913bcebcc8d0a2f872df1076311d039e65a1))
12
+
13
+
A new config option `foldRegions` was added. When set to `true`, regions marked by `#region` and `#endregion` comments are folded when the project is loaded.
14
+
15
+
In addition, editor configurations (`config.markup`, `config.style`, `config.script`) have a new property `foldLines` that accepts an array of objects (e.g. `[{ from: 1, to: 5 }]`) that indicates which lines to fold. This can be useful for less relevant code in embedded playgrounds.
16
+
17
+
***Config:** add the value `"auto"` to `config.editor` options ([0f62de8](https://github.com/live-codes/livecodes/commit/0f62de8891ca221c035a2a0e8e3cbfcc9133f2a0))
18
+
19
+
If set to `auto`, Monaco editor is used on desktop and CodeMirror is used on mobile regardless of other settings. This can be useful in `"simple"` mode.
Selects the [code editor](../features/editor-settings.mdx#code-editor) to use.
602
608
603
-
If `undefined` (the default), Monaco editor is used on desktop, CodeMirror is used on mobile and CodeJar is used in [codeblocks](../features/display-modes.mdx#codeblock), in [lite mode](../features/lite.mdx) and in [readonly](#readonly) playgrounds.
609
+
If `undefined` (the default):<br />
610
+
Monaco editor is used on desktop,<br />
611
+
CodeMirror is used on mobile and in `simple` mode,<br />
612
+
while CodeJar is used in [`codeblock` mode](../features/display-modes.mdx#codeblock), in [`lite` mode](../features/lite.mdx) and in [`readonly`](#readonly) playgrounds.
613
+
614
+
If set to `auto`, Monaco editor is used on desktop and CodeMirror is used on mobile regardless of other settings.
[Common Lisp](https://common-lisp.net/) is a dialect of the Lisp programming language.
4
+
5
+
In LiveCodes, Common Lisp code runs in the browser using [JSCL](https://github.com/jscl-project/jscl), a Common Lisp to JavaScript compiler.
6
+
7
+
:::info Note
8
+
9
+
Lisp language family supported in LiveCodes includes [Common Lisp](./commonlisp.mdx), [Scheme](./scheme.mdx), [ClojureScript](./clojurescript.mdx) and [Fennel](./fennel.mdx).
10
+
11
+
:::
12
+
13
+
## Usage
14
+
15
+
LiveCodes runs Common Lisp code in the browser. JSCL implements a subset of Common Lisp, but covers enough functionality to write practical code.
Please see [JSCL docs](https://github.com/jscl-project/jscl/wiki/JSCL-and-manipulations-with-JS-objects)
26
+
27
+
## Language Info
28
+
29
+
### Name
30
+
31
+
`commonlisp`
32
+
33
+
### Aliases/Extensions
34
+
35
+
`common-lisp`, `lisp`
36
+
37
+
### Editor
38
+
39
+
`script`
40
+
41
+
## Compiler
42
+
43
+
[JSCL](https://github.com/jscl-project/jscl) - Common Lisp to JavaScript compiler
44
+
45
+
## Code Formatting
46
+
47
+
Using [Parinfer](https://shaunlebron.github.io/parinfer/).
48
+
49
+
## Limitations
50
+
51
+
Since JSCL is a subset of Common Lisp, it doesn't implement all Common Lisp features. See the [JSCL documentation](https://github.com/jscl-project/jscl#status) for more information.
52
+
53
+
## Starter Template
54
+
55
+
https://livecodes.io/?template=commonlisp
56
+
57
+
## Links
58
+
59
+
-[Common Lisp](https://common-lisp.net/)
60
+
-[JSCL](https://github.com/jscl-project/jscl)
61
+
-[Common Lisp: A Gentle Introduction to Symbolic Computation](https://www.cs.cmu.edu/~dst/LispBook/)
62
+
-[Practical Common Lisp](http://www.gigamonkeys.com/book/)
[React compiler](https://react.dev/learn/react-compiler), which is a [babel](./babel.mdx) plugin ([babel-plugin-react-compiler](https://www.npmjs.com/package/babel-plugin-react-compiler)).
0 commit comments