another update for syntax highlighting instructions
This commit is contained in:
parent
f0449177dc
commit
b0480c713a
4 changed files with 27 additions and 18 deletions
7
syntax-highlighting/vim/README.md
Normal file
7
syntax-highlighting/vim/README.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
## Vim Syntax Highlighting for catsoop Files
|
||||
|
||||
This directory contains syntax highlighting definitions for `.catsoop` files
|
||||
in Vim.
|
||||
|
||||
To use, simply copy the contents of the `plugin` and `syntax` directories into
|
||||
the corresponding directories in `~/.vim`.
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
to build, install the vsce package:
|
||||
$ npm install -g @vscode/vsce
|
||||
|
||||
then run the following from this directory:
|
||||
$ vsce package
|
||||
|
||||
or download pre-build extension from https://catsoop.org/_static/catsoop-syntax-0.0.1.vsix
|
||||
|
||||
to install, run:
|
||||
$ code --install-extension catsoop-syntax-0.0.1.vsix
|
||||
15
syntax-highlighting/vscode/README.md
Normal file
15
syntax-highlighting/vscode/README.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
## VSCodium/VSCode Syntax Highlighting for catsoop Files
|
||||
|
||||
This directory contains the source code for an extension that adds syntax
|
||||
highlighting for `.catsoop` files to VSCodium/VSCode.
|
||||
|
||||
* First, you can either download the extension from <https://catsoop.org/_static/catsoop-syntax-0.0.1.vsix> or build it yourself by running the following commands from this directory:
|
||||
```
|
||||
$ npm install -g @vscode/vsce
|
||||
$ vsce package
|
||||
```
|
||||
|
||||
* Then you can install the extension in any of three different ways:
|
||||
* By running `$ code --install-extension catsoop-syntax-0.0.1.vsix`, or
|
||||
* By opening that file under Extensions -> Install from VSIX, or
|
||||
* By dragging that file into the Extensions panel of the editor.
|
||||
|
|
@ -99,14 +99,11 @@ $ git clone https://catsoop.org/git/catsoop/sample_course ~/.local/share/catsoo
|
|||
|
||||
<catsoop-section>Configure Syntax Highlighting</catsoop-section>
|
||||
|
||||
Syntax highlighting is available for a few common editors:
|
||||
|
||||
* For [Vim](https://www.vim.org/), copy the `plugin` and `syntax` folders from the [`syntax-highlighting/vim`](https://catsoop.org/git/catsoop/catsoop/src/branch/main/syntax-highlighting/vim) directory in the catsoop repository into `~/.vim`.
|
||||
* For [Emacs](https://www.gnu.org/software/emacs/), follow the instructions in [`syntax-highlighting/emacs/README.md`](https://catsoop.org/git/catsoop/catsoop/src/branch/main/syntax-highlighting/emacs).
|
||||
* For [VSCodium](https://vscodium.com/)/VSCode, you can either [download the catsoop plugin](COURSE/catsoop-syntax-0.0.1.vsix) or build it yourself using [these instructions](https://catsoop.org/git/catsoop/catsoop/src/branch/main/syntax-highlighting/vscode), and then either:
|
||||
* run `code --install-extension catsoop-syntax-0.0.1.vsix` from a terminal window, or
|
||||
* under the extensions panel, choose "Install from VSIX" and navigate to the `catsoop-syntax-0.0.1.vsix` file, or
|
||||
* click-and-drag that file into the "extensions" panel of your editor window.
|
||||
Syntax highlighting is available for a few common editors. Instructions
|
||||
are available from the main catsoop Git repository for
|
||||
[Vim](https://catsoop.org/git/catsoop/catsoop/src/branch/main/syntax-highlighting/vim),
|
||||
[Emacs](https://catsoop.org/git/catsoop/catsoop/src/branch/main/syntax-highlighting/emacs),
|
||||
and [VSCodium](https://catsoop.org/git/catsoop/catsoop/src/branch/main/syntax-highlighting/vscode)/VSCode.
|
||||
|
||||
<catsoop-section>Start CAT-SOOP</catsoop-section>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue