
Adding  openCL syntax highlighting for Windows 
1.	Go to Tools->Options from the Visual studio.
2.	Select the File extension sub-tab inside text editor tab.
3.	Add .cl as the new extension and select Microsoft Visual c++ as editor.
4.	Click ADD and then click OK.
5.	Now create a text file( from VS or from notepad) and name it usertype.dat
6.	Now type all the additional keywords that you want to have highlighted. Write only one word in a line. 
7.	Now add this file to the place where devenv.exe is stored in your system. On my system it is: C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE.
8.	In case a usertype.dat file is already present you should append the keywords to the existing file.
9.	Close Visual Studio and start again to see this list highlighted.


Adding Syntax highlighting in Linux gEdit editor
1.	Close all the gEdit windows.
2.	Copy the opencl.lang file into /usr/share/gtksourceview-2.0/language-specs/
3.	Open any *.cl file.


Adding Syntax highlighting in Linux for VIM Editor
1.	You should have a administrative previlages for editing these files.
2.	Copy the opencl.vim file in /usr/share/vim/vim*/syntax folder. This will enable the OpenCL C syntax highlighting.
3.	Add this at the end of vimrc file at /usr/share/vim folder:
	a)	syntax enable
	b)	au BufRead,BufNewFile *.cl set filetype=opencl
4.	Append the contents of file openclAPI.vim to c.vim present at /usr/share/vim/vim*/syntax. This will enable the OpenCL Host API syntax highlighting.
5.	Restart vim.

References:
http://vimdoc.sourceforge.net/htmldoc/syntax.html
http://www.streamcomputing.eu/blog/2011-02-01/gedit-opencl-syntax-highlighting.
https://developer.gnome.org/gtksourceview/stable/lang-tutorial.html
http://superuser.com/questions/113455/vim-highlighting-for-specific-file-types-where-to-put-syntax-files-vim-events

	
