mig / gedit-rails

A collection of scripts and configuration files that make gedit a more rails-friendly IDE

This URL has Read+Write access

gedit-rails / snippets / erb.xml
100755 35 lines (34 sloc) 1.056 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version='1.0' encoding='utf-8'?>
<snippets language="erb">
  <snippet>
    <text><![CDATA[<%= $0 %>]]></text>
    <tag>erb</tag>
    <description>erb &lt;%=</description>
    <drop-targets>text/erb, text/html</drop-targets>
    <accelerator><![CDATA[<Shift><Control>greater]]></accelerator>
  </snippet>
  <snippet>
    <text><![CDATA[<% $0 %>]]></text>
    <tag>erbc</tag>
    <description>erb &lt;%</description>
    <drop-targets>text/erb, text/html</drop-targets>
  </snippet>
  <snippet>
    <text><![CDATA[<% end %>]]></text>
    <tag>end</tag>
    <description>erb end</description>
    <drop-targets>text/erb, text/html</drop-targets>
  </snippet>
  <snippet>
    <text><![CDATA[<${1:p}>$0</${1:p}>]]></text>
    <tag>p</tag>
    <description>html tag</description>
    <drop-targets>text/erb, text/html</drop-targets>
  </snippet>
  <snippet>
    <text><![CDATA[:${1:key} => ${2:"value"}${3:, }]]></text>
    <tag>:</tag>
    <description>hash pair</description>
    <drop-targets>text/erb, text/html</drop-targets>
  </snippet>
</snippets>