Skip to content
This repository

Sublime text 2 bundle for Play 2

branch: master

Merge pull request #22 from mchv/patch-1

Add OPTIONS as keyword in Routes
latest commit 60cc9be5a5
Guillaume Bort authored
Octocat-spinner-32 .gitignore Add new ignore pattern May 14, 2012
Octocat-spinner-32 Play-Routes.JSON-tmLanguage Add OPTIONS support December 03, 2012
Octocat-spinner-32 Play-Routes.tmLanguage Add OPTIONS support December 03, 2012
Octocat-spinner-32 Play-Scala-Template.JSON-tmLanguage Rewrote syntax for routes files. June 04, 2012
Octocat-spinner-32 Play-Scala-Template.tmLanguage Rewrote syntax for routes files. June 04, 2012
Octocat-spinner-32 README.md Update Readme May 14, 2012
Octocat-spinner-32 action.sublime-snippet Initial version May 07, 2012
Octocat-spinner-32 actor.sublime-snippet Add Scala snippets for async stuff May 14, 2012
Octocat-spinner-32 async.sublime-snippet Add Scala snippets for async stuff May 14, 2012
Octocat-spinner-32 badRequest.sublime-snippet Add Results snippets (scala & java) May 15, 2012
Octocat-spinner-32 bindform.sublime-snippet Add basic stuff for Scala May 14, 2012
Octocat-spinner-32 cacheget.sublime-snippet Add basic stuff for Scala May 14, 2012
Octocat-spinner-32 cacheset.sublime-snippet Add basic stuff for Scala May 14, 2012
Octocat-spinner-32 callbackenum.sublime-snippet Add Scala snippets for async stuff May 14, 2012
Octocat-spinner-32 comet.sublime-snippet Change enumerator name in Comet Action May 16, 2012
Octocat-spinner-32 configuration.tmLanguage New snippets May 07, 2012
Octocat-spinner-32 controller.sublime-snippet TODO May 21, 2012
Octocat-spinner-32 cookieget.sublime-snippet Add snippets for cookies manipulation (scala & java) May 15, 2012
Octocat-spinner-32 cookieset.sublime-snippet Add snippets for cookies manipulation (scala & java) May 15, 2012
Octocat-spinner-32 dbconn.sublime-snippet Add DB stuff for Scala May 14, 2012
Octocat-spinner-32 dctrans.sublime-snippet Add DB stuff for Scala May 14, 2012
Octocat-spinner-32 evolutions.sublime-snippet Ajout d'un snippet pour les fichiers evolutions. May 13, 2012
Octocat-spinner-32 flashget.sublime-snippet Add flash scope manipulation snippets (scala & java) May 15, 2012
Octocat-spinner-32 flashset.sublime-snippet Add flash scope manipulation snippets (scala & java) May 15, 2012
Octocat-spinner-32 foreach.sublime-snippet Fix template scope May 15, 2012
Octocat-spinner-32 form.sublime-snippet Add basic stuff for Scala May 14, 2012
Octocat-spinner-32 fromconf.sublime-snippet Add Scala snippet for conf. value retrieval May 14, 2012
Octocat-spinner-32 global.sublime-snippet New snippets May 07, 2012
Octocat-spinner-32 htmlform.sublime-snippet Fix template scope May 15, 2012
Octocat-spinner-32 internalError.sublime-snippet Add Results snippets (scala & java) May 15, 2012
Octocat-spinner-32 jaction.sublime-snippet Add Action, Controller and Global snippets for Java May 14, 2012
Octocat-spinner-32 jactor.sublime-snippet Add Java Snippets for async stuff May 14, 2012
Octocat-spinner-32 jasync.sublime-snippet Add Java Snippets for async stuff May 14, 2012
Octocat-spinner-32 jbadRequest.sublime-snippet Add Results snippets (scala & java) May 15, 2012
Octocat-spinner-32 jbindform.sublime-snippet Add Java snippets for basic stuff May 14, 2012
Octocat-spinner-32 jcacheget.sublime-snippet Add Java snippets for basic stuff May 14, 2012
Octocat-spinner-32 jcacheset.sublime-snippet Add Java snippets for basic stuff May 14, 2012
Octocat-spinner-32 jcomet.sublime-snippet Add a hint to push message to the Comet socket May 16, 2012
Octocat-spinner-32 jcontroller.sublime-snippet Add Results snippets (scala & java) May 15, 2012
Octocat-spinner-32 jcookieget.sublime-snippet Add snippets for cookies manipulation (scala & java) May 15, 2012
Octocat-spinner-32 jcookieset.sublime-snippet Add snippets for cookies manipulation (scala & java) May 15, 2012
Octocat-spinner-32 jdbconn.sublime-snippet Add Java snippets for DB stuff May 14, 2012
Octocat-spinner-32 jdctrans.sublime-snippet Add Java snippets for DB stuff May 14, 2012
Octocat-spinner-32 jentity.sublime-snippet Add Java snippets for DB stuff May 14, 2012
Octocat-spinner-32 jflashget.sublime-snippet Add flash scope manipulation snippets (scala & java) May 15, 2012
Octocat-spinner-32 jflashset.sublime-snippet Add flash scope manipulation snippets (scala & java) May 15, 2012
Octocat-spinner-32 jform.sublime-snippet Add Java snippets for basic stuff May 14, 2012
Octocat-spinner-32 jfromconf.sublime-snippet Add Java snippet for conf. value retrieval May 14, 2012
Octocat-spinner-32 jglobal.sublime-snippet Add Action, Controller and Global snippets for Java May 14, 2012
Octocat-spinner-32 jinternalError.sublime-snippet Add Results snippets (scala & java) May 15, 2012
Octocat-spinner-32 jnotFound.sublime-snippet Add Results snippets (scala & java) May 15, 2012
Octocat-spinner-32 jok.sublime-snippet Add Java snippets for basic stuff May 14, 2012
Octocat-spinner-32 jredirect.sublime-snippet Add Java snippets for basic stuff May 14, 2012
Octocat-spinner-32 jschedule.sublime-snippet Add Java Snippets for async stuff May 14, 2012
Octocat-spinner-32 jsessionget.sublime-snippet Add Java snippets for basic stuff May 14, 2012
Octocat-spinner-32 jsessionset.sublime-snippet Add Java snippets for basic stuff May 14, 2012
Octocat-spinner-32 jstatus.sublime-snippet Add Results snippets (scala & java) May 15, 2012
Octocat-spinner-32 junauthorized.sublime-snippet Add Results snippets (scala & java) May 15, 2012
Octocat-spinner-32 jwebsocket.sublime-snippet Add Java Snippets for async stuff May 14, 2012
Octocat-spinner-32 notFound.sublime-snippet Add Results snippets (scala & java) May 15, 2012
Octocat-spinner-32 ok.sublime-snippet Add basic stuff for Scala May 14, 2012
Octocat-spinner-32 pushenum.sublime-snippet Add Scala snippets for async stuff May 14, 2012
Octocat-spinner-32 redirect.sublime-snippet Add basic stuff for Scala May 14, 2012
Octocat-spinner-32 schedule.sublime-snippet Add Scala snippets for async stuff May 14, 2012
Octocat-spinner-32 sessionget.sublime-snippet Add basic stuff for Scala May 14, 2012
Octocat-spinner-32 sessionset.sublime-snippet Add basic stuff for Scala May 14, 2012
Octocat-spinner-32 sql.sublime-snippet Add DB stuff for Scala May 14, 2012
Octocat-spinner-32 sse.sublime-snippet Add Scala snippets for async stuff May 14, 2012
Octocat-spinner-32 status.sublime-snippet Add Results snippets (scala & java) May 15, 2012
Octocat-spinner-32 template.sublime-snippet Fix template scope May 15, 2012
Octocat-spinner-32 todo.sublime-snippet TODO May 21, 2012
Octocat-spinner-32 tupleform.sublime-snippet Add Scala snippet for tuple forms May 14, 2012
Octocat-spinner-32 unauthorized.sublime-snippet Add Results snippets (scala & java) May 15, 2012
Octocat-spinner-32 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"
Something went wrong with that request. Please try again.