Faust Syntax Highlighting Files
-------------------------------

This folder contains syntax highlighting files for various editors. The editors currently supported are : KDE Kate/Kwrite, GNOME gedit, Macintosh TextWrangler, highlight and vim

1) KDE Kate/Kwrite
install the file 'faust.xml' into Kate syntax folder ('/opt/kde3/share/apps/katepart/syntax' on suse 10.0)
('/usr/share/apps/katepart/syntax' on mandriva and ubuntu)

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


3) TextWrangler
install the file Faust.plist into ~/Library/Application\ Support/TextWrangler/Language\ Modules/

4) 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

5) VIM
'faust.vim' is a syntax file for VIM contributed by Bjrn 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

6) EMACS
copy file faust-mode.el into /usr/share/emacs/site-lisp and add the following lines to your .emacs:

(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.

7) NANO
copy file faust.nanorc into folder /usr/share/nano/

add lines
	set tabsize 4
	include "/usr/share/nano/faust.nanorc"
to file /etc/nanorc

8) ATOM
Copy the directory 'atom/language-faust' into '~/.atom/packages/' and follow the instructions in atom/language-faust/README.md
