Project

General

Profile

Geany » History » Version 2

iri, 12/02/2013 10:46 PM

1 1 iri
h1. Geany
2
3 2 iri
"Geany":http://www.geany.org/ is a free (GNU GPL 2 or later) lightweight cross-platform text editor. It includes a basic IDE features.
4 1 iri
5
h2. Syntax highlighting
6
7
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)
8
9
<pre>
10
# For complete documentation of this file, please see Geany's main documentation
11
[styling]
12
# Edit these in the colorscheme .conf file instead
13
default=default
14
comment=comment
15
commentline=comment_line
16
commentdoc=comment_doc
17
number=number_1
18
word=keyword_1
19
word2=keyword_2
20
string=string_1
21
character=string_1
22
operator=operator
23
identifier=identifier_1
24
stringeol=string_eol
25
verbatim=string_2
26
commentlinedoc=comment_line_doc
27
commentdockeyword=comment_doc_keyword
28
commentdockeyworderror=comment_doc_keyword_error
29
30
[keywords]
31
# all items must be in one line
32
primary=defcomm defcommvar fun proto struct typedef typeof var
33
secondary=do else if in let mutate set while
34
35
[settings]
36
# default extension used when saving files
37
extension=pkg
38
lexer_filetype=C
39
40
# the following characters are these which a "word" can contains, see documentation
41
#wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
42
43
# single comment char, like # in this file
44
comment_single=//
45
# multiline comments
46
comment_open=/*
47
comment_close=*/
48
49
# set to false if a comment character/string should start at column 0 of a line, true uses any
50
# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
51
	#command_example();
52
# setting to false would generate this
53
#	command_example();
54
# This setting works only for single line comments
55
comment_use_indent=true
56
57
# context action command (please see Geany's main documentation for details)
58
context_action_cmd=
59
60
[indentation]
61
width=4
62
# 0 is spaces, 1 is tabs, 2 is tab & spaces
63
type=1
64
65
[build_settings]
66
# %f will be replaced by the complete filename
67
# %e will be replaced by the filename without extension
68
# (use only one of it at one time)
69
</pre>
70
71
72
h2. Add Scol extension :
73
74
Open Geany and go to Tools -> Configuration Files -> filetype_extensions.conf
75
Add the line :
76
<pre>
77
Scol=*.pkg;
78
</pre>
79
and save.