File: README.md

package info (click to toggle)
faust 2.79.3%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 397,496 kB
  • sloc: cpp: 278,433; ansic: 116,164; javascript: 18,529; vhdl: 14,052; sh: 13,884; java: 5,900; objc: 3,852; python: 3,222; makefile: 2,655; cs: 1,672; lisp: 1,146; ruby: 954; yacc: 586; xml: 471; lex: 247; awk: 110; tcl: 26
file content (88 lines) | stat: -rw-r--r-- 3,330 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Faust Syntax Highlighting Files

This folder contains syntax highlighting files for various editors. The editors currently supported are: 

* [KDE Kate/Kwrite](https://kate-editor.org/)
* [GNOME gedit](https://wiki.gnome.org/Apps/Gedit)
* [TextWrangler](https://www.barebones.com/products/textwrangler/)
* [Highlight](http://www.andre-simon.de/)
* [Vim](https://www.vim.org/)
* [GNU Emacs](https://www.gnu.org/software/emacs/)
* [GNU nano](https://www.nano-editor.org/)
* [Atom](https://atom.io/)
* [Visual Studio Code](https://code.visualstudio.com/)
* [Sublime Text](https://www.sublimetext.com)

## KDE Kate/Kwrite

Install the file `faust.xml` into Kate syntax folder (`/opt/kde3/share/apps/katepart/syntax` on suse 10.0 or `/usr/share/apps/katepart/syntax` on mandriva and ubuntu)

## gedit

Install the file `faust.lang` into gedit syntax folder (`/usr/share/gtksourceview-2.0/language-specs` on Ubuntu 9.10)

## TextWrangler
Install the file `Faust.plist` into `~/Library/Application Support/TextWrangler/Language Modules/`

## Highlight

Install `dsp.lang` into `/usr/share/highlight/langDefs/`

Examples using highlight:
* `highlight --latex -l -t 4 -i karplus.dsp -o karplus.dsp.tex`
* `highlight -l -t 4 -i mixer.dsp -o mixer.dsp.html`

## Vim

`faust.vim` is a syntax file for VIM contributed by Bjorn Lindig

1. Install the file `faust.vim` into vim syntax folder (`~/.vim/syntax/`)
2. Add the following lines to the file `filetype.vim` in the `~/.vim` directory (if its not there, you have to create it):

```
faust filetype file
    if exists("did_load_filetypes")
      finish
    endif
    augroup filetypedetect
      au! BufRead,BufNewFile *.fst      setfiletype faust
      au! BufRead,BufNewFile *.dsp      setfiletype faust
    augroup END
```

## Emacs
Copy the file `faust-mode.el` into `/usr/share/emacs/site-lisp` and add the following lines to your `.emacs` file:

```
(require 'faust-mode)
(setq auto-mode-alist (cons '("\\.dsp$" . faust-mode) auto-mode-alist))
```

NB: This is the latest version of emacs-faust-mode created by Juan Gabriel Alzate Romero, cf. https://github.com/agraef/emacs-faust-mode.

## nano

1. Copy the file `faust.nanorc` into folder `/usr/share/nano/`
2. Add the following lines to the file `/etc/nanorc`

```
set tabsize 4
include "/usr/share/nano/faust.nanorc"
```

## Atom

Copy the directory `atom/language-faust` into `~/.atom/packages/` and follow the instructions in [atom/language-faust/README.md](atom/language-faust/README.md)

## Visual Studio Code

1. From within Visual Studio Code bring up the Extensions view by clicking on the `Extensions` icon in the Activity Bar on the side of VS Code or the `View: Extensions` command.
2. Enter `faust` in the search field, press Enter and then select the extension.
3. Click Install to automatically download and install the extension.

NB: This is the latest version of [faust extension](https://marketplace.visualstudio.com/items?itemName=glen-anderson.vscode-faust) created by Glen Anderson, cf. https://github.com/hellbent/vscode-faust.

## Sublime Text 4 completions and snippets

Copy the folder [sublime-text/Faust](sublime-text/Faust) to your `Packages/User` directory. To find the right directory, use Preferences > Browse Packages...  
More info in [sublime-text/Faust/README.md](sublime-text/Faust/README.md)