Geany: initial snippets file

This commit is contained in:
Davide Andreoli 2014-08-06 12:56:22 +02:00
parent 65860f1769
commit 8e9b6d96be
2 changed files with 23 additions and 2 deletions

View File

@ -4,10 +4,10 @@
#
# Usage:
#
# 1. Put this file in ~/.config/geany/filedefs/ folder.
# 1. Copy this file to "~/.config/geany/filedefs/" folder (or just link it).
#
# 2. To make geany automatically recognize .edc extension as Edje file:
# Edje=*.edc; in filetype_extensions.conf
# Edje=*.edc; in filetype_extensions.conf
#

21
snippets.conf Normal file
View File

@ -0,0 +1,21 @@
#
# EFL snippets definition for the Geany editor
#
# Usage:
#
# If you do NOT have other custom snippets:
# Copy this file to "~/.config/geany/" (or just link it)
#
# Otherwise you need to copy/paste the snippets here to your file.
#
# NOTE: default snippets file (with docs) at: /usr/share/geany/snippets.conf
#
[Edje]
group=group { name: "%cursor%";\n\tparts {\n\t}\n}
part=part { name: "%cursor%";\n\ttype: RECT;\n\tdescription { state: "default" 0.0;\n\t}\n}
desc=description { state: "default" 0.0;\n\t%cursor%\n}
rel1=rel1 {\n\tto: "%cursor%";\n\trelative: 0.0 0.0;\n\toffset: 0 0;\n}
rel2=rel2 {\n\tto: "%cursor%";\n\trelative: 1.0 1.0;\n\toffset: -1 -1;\n}
RECT=part { name: "%cursor%";\n\ttype: RECT;\n\tdescription { state: "default" 0.0;\n\t}\n}
IMAGE=part { name: "%cursor%";\n\tdescription { state: "default" 0.0;\n\t\timage {\n\t\t\tnormal: "";\n\t\t\tborder: left right top bottom;\n\t\t}\n\t}\n}