This folder contains syntax highlighting files for various editors. The editors currently supported are:
- KDE Kate/Kwrite
- GNOME gedit
- TextWrangler
- Highlight
- Vim
- GNU Emacs
- GNU nano
- Atom
- Visual Studio Code
- Sublime Text
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)
Install the file faust.lang
into gedit syntax folder (/usr/share/gtksourceview-2.0/language-specs
on Ubuntu 9.10)
Install the file Faust.plist
into ~/Library/Application Support/TextWrangler/Language Modules/
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
faust.vim
is a syntax file for VIM contributed by Bjorn Lindig
- Install the file
faust.vim
into vim syntax folder (~/.vim/syntax/
) - 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
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.
- Copy the file
faust.nanorc
into folder/usr/share/nano/
- Add the following lines to the file
/etc/nanorc
set tabsize 4
include "/usr/share/nano/faust.nanorc"
Copy the directory atom/language-faust
into ~/.atom/packages/
and follow the instructions in atom/language-faust/README.md
- 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 theView: Extensions
command. - Enter
faust
in the search field, press Enter and then select the extension. - Click Install to automatically download and install the extension.
NB: This is the latest version of faust extension created by Glen Anderson, cf. https://github.com/hellbent/vscode-faust.
Copy the folder 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