Skip to content

Commit

Permalink
Merge pull request scrooloose#2 from phmongeau/master
Browse files Browse the repository at this point in the history
Textile snippets and an acitonscript snippet
  • Loading branch information
honza committed Jun 23, 2011
2 parents 01f73c3 + 0054b27 commit 6a91f93
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
22 changes: 22 additions & 0 deletions snippets/actionscript.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,25 @@ snippet fun
{
${4:/* code */}
}
# FlxSprite (usefull when using the flixel library)
snippet FlxSprite
package
{
import org.flixel.*

public class ${1:ClassName} extends ${2:FlxSprite}
{
public function $1(${3: X:Number, Y:Number}):void
{
super(X,Y);
${4: //code...}
}

override public function update():void
{
super.update();
${5: //code...}
}
}
}

30 changes: 30 additions & 0 deletions snippets/textile.snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Jekyll post header
snippet header
---
title: ${1:title}
layout: post
date: ${2:date} ${3:hour:minute:second} -05:00
---

# Image
snippet img
!${1:url}(${2:title}):${3:link}!

# Table
snippet |
|${1}|${2}

# Link
snippet link
"${1:link text}":${2:url}

# Acronym
snippet (
(${1:Expand acronym})${2}

# Footnote
snippet fn
[${1:ref number}] ${3}

fn$1. ${2:footnote}

0 comments on commit 6a91f93

Please sign in to comment.