Project

General

Profile

Geany » History » Revision 2

Revision 1 (iri, 12/02/2013 10:45 PM) → Revision 2/3 (iri, 12/02/2013 10:46 PM)

h1. Geany 

 "Geany":http://www.geany.org/ is a free (GNU GPL 2 or later) lightweight cross-platform text editor. It includes a basic IDE features. 

 h2. Syntax highlighting 

 Copy the content below    in ~/.config/geany/filedefs/filetypes.Scol.conf (Linux) or c:\Users\your_username\AppData\Roaming\geany\filedefs\filetypes.Scol.conf (Windows 7) 

 <pre> 
 # For complete documentation of this file, please see Geany's main documentation 
 [styling] 
 # Edit these in the colorscheme .conf file instead 
 default=default 
 comment=comment 
 commentline=comment_line 
 commentdoc=comment_doc 
 number=number_1 
 word=keyword_1 
 word2=keyword_2 
 string=string_1 
 character=string_1 
 operator=operator 
 identifier=identifier_1 
 stringeol=string_eol 
 verbatim=string_2 
 commentlinedoc=comment_line_doc 
 commentdockeyword=comment_doc_keyword 
 commentdockeyworderror=comment_doc_keyword_error 

 [keywords] 
 # all items must be in one line 
 primary=defcomm defcommvar fun proto struct typedef typeof var 
 secondary=do else if in let mutate set while 

 [settings] 
 # default extension used when saving files 
 extension=pkg 
 lexer_filetype=C 

 # the following characters are these which a "word" can contains, see documentation 
 #wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 

 # single comment char, like # in this file 
 comment_single=// 
 # multiline comments 
 comment_open=/* 
 comment_close=*/ 

 # set to false if a comment character/string should start at column 0 of a line, true uses any 
 # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d 
	 #command_example(); 
 # setting to false would generate this 
 # 	 command_example(); 
 # This setting works only for single line comments 
 comment_use_indent=true 

 # context action command (please see Geany's main documentation for details) 
 context_action_cmd= 

 [indentation] 
 width=4 
 # 0 is spaces, 1 is tabs, 2 is tab & spaces 
 type=1 

 [build_settings] 
 # %f will be replaced by the complete filename 
 # %e will be replaced by the filename without extension 
 # (use only one of it at one time) 
 </pre> 


 h2. Add Scol extension : 

 Open Geany and go to Tools -> Configuration Files -> filetype_extensions.conf 
 Add the line : 
 <pre> 
 Scol=*.pkg; 
 </pre> 
 and save.