Spket JavaScript Editor Templates

Feature requests
Post Reply
Victor_Homyakov
Posts: 4
Joined: Thu Jan 06, 2011 10:50 am

Spket JavaScript Editor Templates

Post by Victor_Homyakov » Tue Jun 07, 2011 12:23 pm

I would like to add these templates to default set:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="JavaScript" deleted="false" description="new Prototype 1.6+ class" enabled="true" name="class">var ${className} = Class.create({
  initialize: function(${args}) {
    ${cursor}
  }
});</template></templates>

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="JavaScript" deleted="false" description="create new function" enabled="true" name="fun">function ${name}(${args}) {
  ${cursor}
}</template></templates>
1st template inserts code for new Prototype 1.6+ Class, 2nd inserts function declaration.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest