Sublime text 2 bundle for Play 2
Latest commit 60cc9be Dec 4, 2012 @guillaumebort Merge pull request #22 from mchv/patch-1
Add OPTIONS as keyword in Routes
Permalink
Failed to load latest commit information.
.gitignore
Play-Routes.JSON-tmLanguage Add OPTIONS support Dec 3, 2012
Play-Routes.tmLanguage
Play-Scala-Template.JSON-tmLanguage
Play-Scala-Template.tmLanguage Rewrote syntax for routes files. Jun 4, 2012
README.md
action.sublime-snippet
actor.sublime-snippet Add Scala snippets for async stuff May 14, 2012
async.sublime-snippet
badRequest.sublime-snippet Add Results snippets (scala & java) May 15, 2012
bindform.sublime-snippet
cacheget.sublime-snippet
cacheset.sublime-snippet
callbackenum.sublime-snippet Add Scala snippets for async stuff May 14, 2012
comet.sublime-snippet Change enumerator name in Comet Action May 16, 2012
configuration.tmLanguage
controller.sublime-snippet
cookieget.sublime-snippet
cookieset.sublime-snippet
dbconn.sublime-snippet
dctrans.sublime-snippet
evolutions.sublime-snippet Ajout d'un snippet pour les fichiers evolutions. May 13, 2012
flashget.sublime-snippet
flashset.sublime-snippet
foreach.sublime-snippet Fix template scope May 15, 2012
form.sublime-snippet
fromconf.sublime-snippet
global.sublime-snippet
htmlform.sublime-snippet Fix template scope May 15, 2012
internalError.sublime-snippet
jaction.sublime-snippet
jactor.sublime-snippet
jasync.sublime-snippet
jbadRequest.sublime-snippet Add Results snippets (scala & java) May 15, 2012
jbindform.sublime-snippet Add Java snippets for basic stuff May 14, 2012
jcacheget.sublime-snippet
jcacheset.sublime-snippet
jcomet.sublime-snippet Add a hint to push message to the Comet socket May 16, 2012
jcontroller.sublime-snippet Add Results snippets (scala & java) May 15, 2012
jcookieget.sublime-snippet Add snippets for cookies manipulation (scala & java) May 15, 2012
jcookieset.sublime-snippet Add snippets for cookies manipulation (scala & java) May 15, 2012
jdbconn.sublime-snippet Add Java snippets for DB stuff May 14, 2012
jdctrans.sublime-snippet
jentity.sublime-snippet Add Java snippets for DB stuff May 14, 2012
jflashget.sublime-snippet Add flash scope manipulation snippets (scala & java) May 15, 2012
jflashset.sublime-snippet Add flash scope manipulation snippets (scala & java) May 15, 2012
jform.sublime-snippet
jfromconf.sublime-snippet Add Java snippet for conf. value retrieval May 14, 2012
jglobal.sublime-snippet Add Action, Controller and Global snippets for Java May 14, 2012
jinternalError.sublime-snippet Add Results snippets (scala & java) May 15, 2012
jnotFound.sublime-snippet Add Results snippets (scala & java) May 15, 2012
jok.sublime-snippet
jredirect.sublime-snippet
jschedule.sublime-snippet
jsessionget.sublime-snippet
jsessionset.sublime-snippet
jstatus.sublime-snippet Add Results snippets (scala & java) May 15, 2012
junauthorized.sublime-snippet Add Results snippets (scala & java) May 15, 2012
jwebsocket.sublime-snippet Add Java Snippets for async stuff May 14, 2012
notFound.sublime-snippet
ok.sublime-snippet
pushenum.sublime-snippet
redirect.sublime-snippet
schedule.sublime-snippet
sessionget.sublime-snippet Add basic stuff for Scala May 14, 2012
sessionset.sublime-snippet Add basic stuff for Scala May 14, 2012
sql.sublime-snippet Add DB stuff for Scala May 14, 2012
sse.sublime-snippet Add Scala snippets for async stuff May 14, 2012
status.sublime-snippet
template.sublime-snippet Fix template scope May 15, 2012
todo.sublime-snippet
tupleform.sublime-snippet
unauthorized.sublime-snippet
websocket.sublime-snippet Add Scala snippets for async stuff May 14, 2012

README.md

A Play 2.0 Bundle for Sublime text 2

Get the latest Sublime Text 2 beta from http://www.sublimetext.com/2.

Currently supported features

Syntax highlighting

  • For *.scala.html
  • For *.routes
  • For *.conf

Code snippets

  • action ➝ : Creates an action (scala & java)
  • actor ➝ : Get an actor from Akka (scala & java)
  • aync ➝ : Creates an async result (scala & java)
  • bindform ➝ : Creates form binding from request structure (scala & java)
  • cacheget ➝ : Retrieve value from cache (scala & java)
  • cacheset ➝ : Put value in cache (scala & java)
  • callbackenum ➝ : Creates callback enumerator (scala)
  • controller ➝ : Creates a Controller structure (scala & java)
  • dbconn ➝ : Creates a DB.withConnection structure (scala & java)
  • dbtrans ➝ : Creates a DB..withTransaction structure (scala & java)
  • entity ➝ : Creates a Ebean entity structure (java)
  • evolutions ➝ : Creates the evolution up/down tags in sql file
  • pforeach ➝ : Creates an foreach structure in templates (html)
  • form ➝ : Creates a simple form structure (scala & java)
  • pform ➝ : Creates a simple html form (html)
  • fromconf ➝ : Creates value from conf file (scala & java)
  • global ➝ : Creates a Global object structure (scala & java)
  • htmlform ➝ : Creates a form in templates (html)
  • model ➝ : Creates a JDBC model structure (scala)
  • ok ➝ : Creates a Ok result (scala & java)
  • pushenum ➝ : Creates an imperative enumerator (scala)
  • redirect ➝ : Creates redirection (scala & java)
  • schedule ➝ : Creates a scheduled task (scala & java)
  • sql ➝ : Creates a SQL structure (scala)
  • sessionget ➝ : Retrieve a value from session (scala & java)
  • sessionset ➝ : Put value in session (scala & java)
  • sse ➝ : Creates a SSE action (scala)
  • tupleform ➝ : Creates a multiple input form (scala)
  • template ➝ : Creates a html template structure (html)
  • websocket ➝ : Creates a websocket action (scala & java)

Theme

Currently optimized for the Dawn theme.

Installation instructions :

Mac

$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
$ git clone git://github.com/guillaumebort/play2-sublimetext2.git play2

Linux (Ubuntu like distros)

$ cd ~/.config/sublime-text-2/Packages/
$ git clone git://github.com/guillaumebort/play2-sublimetext2.git play2

Windows 7:

Copy the directory to: "C:\Users\<username>\AppData\Roaming\Sublime Text 2\Packages"

Windows XP:

Copy the directory to: "C:\Documents and Settings\<username>\Application Data\Sublime Text 2\Packages"