Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Sublime text 2 bundle for Play 2
branch: master

Merge pull request #22 from mchv/patch-1

Add OPTIONS as keyword in Routes
Failed to load latest commit information.
.gitignore Add new ignore pattern
Play-Routes.JSON-tmLanguage Add OPTIONS support
Play-Routes.tmLanguage Add OPTIONS support
Play-Scala-Template.JSON-tmLanguage Rewrote syntax for routes files.
Play-Scala-Template.tmLanguage Rewrote syntax for routes files.
README.md Update Readme
action.sublime-snippet Initial version
actor.sublime-snippet Add Scala snippets for async stuff
async.sublime-snippet Add Scala snippets for async stuff
badRequest.sublime-snippet Add Results snippets (scala & java)
bindform.sublime-snippet Add basic stuff for Scala
cacheget.sublime-snippet Add basic stuff for Scala
cacheset.sublime-snippet Add basic stuff for Scala
callbackenum.sublime-snippet Add Scala snippets for async stuff
comet.sublime-snippet Change enumerator name in Comet Action
configuration.tmLanguage New snippets
controller.sublime-snippet TODO
cookieget.sublime-snippet Add snippets for cookies manipulation (scala & java)
cookieset.sublime-snippet Add snippets for cookies manipulation (scala & java)
dbconn.sublime-snippet Add DB stuff for Scala
dctrans.sublime-snippet Add DB stuff for Scala
evolutions.sublime-snippet Ajout d'un snippet pour les fichiers evolutions.
flashget.sublime-snippet Add flash scope manipulation snippets (scala & java)
flashset.sublime-snippet Add flash scope manipulation snippets (scala & java)
foreach.sublime-snippet Fix template scope
form.sublime-snippet Add basic stuff for Scala
fromconf.sublime-snippet Add Scala snippet for conf. value retrieval
global.sublime-snippet New snippets
htmlform.sublime-snippet Fix template scope
internalError.sublime-snippet Add Results snippets (scala & java)
jaction.sublime-snippet Add Action, Controller and Global snippets for Java
jactor.sublime-snippet Add Java Snippets for async stuff
jasync.sublime-snippet Add Java Snippets for async stuff
jbadRequest.sublime-snippet Add Results snippets (scala & java)
jbindform.sublime-snippet Add Java snippets for basic stuff
jcacheget.sublime-snippet Add Java snippets for basic stuff
jcacheset.sublime-snippet Add Java snippets for basic stuff
jcomet.sublime-snippet Add a hint to push message to the Comet socket
jcontroller.sublime-snippet Add Results snippets (scala & java)
jcookieget.sublime-snippet Add snippets for cookies manipulation (scala & java)
jcookieset.sublime-snippet Add snippets for cookies manipulation (scala & java)
jdbconn.sublime-snippet Add Java snippets for DB stuff
jdctrans.sublime-snippet Add Java snippets for DB stuff
jentity.sublime-snippet Add Java snippets for DB stuff
jflashget.sublime-snippet Add flash scope manipulation snippets (scala & java)
jflashset.sublime-snippet Add flash scope manipulation snippets (scala & java)
jform.sublime-snippet Add Java snippets for basic stuff
jfromconf.sublime-snippet Add Java snippet for conf. value retrieval
jglobal.sublime-snippet Add Action, Controller and Global snippets for Java
jinternalError.sublime-snippet Add Results snippets (scala & java)
jnotFound.sublime-snippet Add Results snippets (scala & java)
jok.sublime-snippet Add Java snippets for basic stuff
jredirect.sublime-snippet Add Java snippets for basic stuff
jschedule.sublime-snippet Add Java Snippets for async stuff
jsessionget.sublime-snippet Add Java snippets for basic stuff
jsessionset.sublime-snippet Add Java snippets for basic stuff
jstatus.sublime-snippet Add Results snippets (scala & java)
junauthorized.sublime-snippet Add Results snippets (scala & java)
jwebsocket.sublime-snippet Add Java Snippets for async stuff
notFound.sublime-snippet Add Results snippets (scala & java)
ok.sublime-snippet Add basic stuff for Scala
pushenum.sublime-snippet Add Scala snippets for async stuff
redirect.sublime-snippet Add basic stuff for Scala
schedule.sublime-snippet Add Scala snippets for async stuff
sessionget.sublime-snippet Add basic stuff for Scala
sessionset.sublime-snippet Add basic stuff for Scala
sql.sublime-snippet Add DB stuff for Scala
sse.sublime-snippet Add Scala snippets for async stuff
status.sublime-snippet Add Results snippets (scala & java)
template.sublime-snippet Fix template scope
todo.sublime-snippet TODO
tupleform.sublime-snippet Add Scala snippet for tuple forms
unauthorized.sublime-snippet Add Results snippets (scala & java)
websocket.sublime-snippet Add Scala snippets for async stuff

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"
Something went wrong with that request. Please try again.