Skip to content

Instantly share code, notes, and snippets.

View derekr's full-sized avatar
💭
Chillin'

Derek Reynolds derekr

💭
Chillin'
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<setting name="comment-multiline-start">
<syntax-context>php, php > *</syntax-context>
<value>/*</value>
</setting>
<setting name="comment-multiline-end">
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<setting name="comment-multiline-start">
<syntax-context>php, php *, php > *</syntax-context>
<value>/*</value>
</setting>
<setting name="comment-multiline-end">
<!-- Metadata -->
<collection name="metadata.comment">
<!-- // comment -->
<zone name="metadata.comment.single-line.double-slash">
<expression>(//)(\s?(.*)?$\n?)</expression>
<capture number="1" name="delimiter.separator.double-slash.comment.begin" />
<capture number="3" name="content" />
</zone>
<!-- # comment -->
<zone name="metadata.comment.line.hash">
<function name="name">
<version></version>
<description></description>
<params>
<param type="" required="true">$paramName</param>
<param type="" required="false">$paramName</param>
</params>
<return></return>
<manual-url></manual-url>
</function>
<zones>
<zone name="metadata.processing.tag.preprocessor.xml">
<starts-with>
<expression>(&lt;\?)(xml)</expression>
<capture number="1" name="delimiter.punctuation.definition.tag.begin"/>
<capture number="2" name="entity.name"/>
</starts-with>
<ends-with>
<expression>(\?>)</expression>
<capture number="1" name="delimiter.punctuation.definition.tag.end"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://www.w3.org/2006/03/hcard">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>${1:Title}</title>
</head>
<combo>
<extension casesensitive="false">php</extension>
<match-content lines="1">(&lt;)(\?)(php|=)?</match-content>
</combo>
- (NSImage *)image
{
NSString *path = [[NSBundle mainBundle] pathForResource:@"document__plus" ofType:@"png"];
NSImage *imageFile = [[NSImage alloc] initWithContentsOfFile:path];
[path release];
return imageFile;
}
- (NSImage *)image
{
NSString *path = [[NSBundle bundleForClass:[self class]] pathForResource:@"document__plus" ofType:@"png"];
NSImage *image = [[NSImage alloc] initWithContentsOfFile:path];
NSLog(@"image %@", image);
[image autorelease];
return image;
}
/*
@theme Railscasts
@override-placeholders html, xml, css, sourcecode.js, php
@author Ported by Xac Stegner from Ryan Bates' Railscasts TextMate theme
*/
@base {
color: #ddd;
background-color: #222;
insertion-point-color: #fff;