Posts filed under ‘IDE’

Custom Snippets in Aptana 3

<![CDATA[

Aptana Snippets

There are some very useful snippets in Aptana like auto building Html tags (Type “div” and hit “Tab” then Aptana will generate “<div id=”name”></div>” for you) but most amazing thing is its very easy to create your own snippets.

If you are using “console.log()” function a lot like me then writing a snippet for this function will save a lot of time for you.

To add a “console.log()” shortcut key

  1. Create a new project and go to project folder (where your “.project” is found)
  2. Download bundles.zip
  3. Extract the zip content to the root of your project folder. The folder hierarchy :
  4. And restart Aptana 3.
  5. Now open an Html file, select a text and hit “Shift+Command+.”
require 'ruble'

with_defaults :scope => 'text.html,source.js,source.php source.php.embedded.block.html', :input => :none, :output => :insert_as_snippet do |bundle|
	command 'console.log()' do |cmd|
		cmd.key_binding = 'M1+M2+.'
		cmd.input = :selection
		cmd.invoke do |context|
		  selection = ENV['TM_SELECTED_TEXT'] || ''
		  if selection.length > 0
			"console.log(${1:#{selection}})"
		  else
			"console.log($0)"
		  end
		end
	end
end

Visit https://aptanastudio.tenderapp.com/faqs/your-aptana-studio-installation/adding-a-new-snippet and https://aptanastudio.tenderapp.com/faqs/scripting-aptana-studio/ruble-programming-guide for more

]]>

01,12,2010 at 8:32 Yorum bırakın

Cool dark color schemes for Aptana and Dreamweaver

<![CDATA[All these themes are for php, html, css and js files so dont be upset when you dont see any change when you work on java, xml, etc.. files 🙂 These schemes are set for web developers.

Aptana 2 Themes

NightLion

Includes color themes for CSS, HTML, Javascript, jSON, PHP, PHP Doc, PHP Smarty, PHP Smarty Config, ScriptDoc and XML.

Autumna

Includes color themes for CSS, HTML, Javascript, PHP, PHP Doc and ScriptDoc.

Green Chaud

Includes color themes for CSS, HTML, Javascript, PHP, and XML.

Sunburst

Includes color themes for CSS, ERB, HTML, Javascript, PHP, XML and YML.

LPent Shades

Dreamweaver

Got the content from Tom Sramek‘s Blog.

Are you coding in Dreamweaver and don’t like the default light code colorization? I created dark background color theme for Dreamweaver. I took inspiration from Green Chaud theme for Aptana IDE.

tom-dark-dw-theme

List of supported formats:

  • CSS
  • HTML
  • PHP
  • JavaScript
  • XML
  • Java
  • JSP
  • ActionScript
  • WML

All you need to do is to download Tom’s dark DW theme XML file and follow instructions below.

Windows XP users

Dreamweaver CS4

  1. Close Dreamweaver
  2. Go to C:Program FilesAdobeAdobe Dreamweaver CS4configurationCodeColoring
  3. Find and backup file Colors.xml
  4. Copy file colors.xml downloaded from this site
  5. Change default background color to #4D4D4D (edit –> preferences –> code coloring)

Dreamweaver CS3

  1. Close Dreamweaver
  2. Go to C:Documents and Settings%username%Application DataAdobeDreamweaver 9ConfigurationCodeColoring
  3. Find and backup file Colors.xml
  4. Copy file colors.xml downloaded from this site
  5. Change default background color to #4D4D4D (edit –> preferences –> code coloring)

Windows 7 users

Dreamweaver CS4

  1. Close Dreamweaver
  2. Go to C:Users%username%AppDataRoamingAdobeDreamweaver CS4en_USConfigurationCodeColoring
  3. Find and backup file Colors.xml
  4. Copy file colors.xml downloaded from this site
  5. Change default background color to #4D4D4D (edit –> preferences –> code coloring)

MacOS users

Dreamweaver CS4

  1. Close Dreamweaver
  2. Go to /Users/%name%/Library/Application Support/Adobe/Dreamweaver CS4/%localization(en_US)%/Configuration/CodeColoring
  3. Find and backup file Colors.xml
  4. Copy file colors.xml downloaded from this site
  5. Change default background color to #4D4D4D (edit –> preferences –> code coloring)

Download

]]>

27,10,2010 at 8:51 2 yorum


Takvim

Haziran 2017
P S Ç P C C P
« Ara    
 1234
567891011
12131415161718
19202122232425
2627282930  

Posts by Month

Posts by Category