I found interest plugin for most IDEs (and for textmate too), named Zen Coding.
It lets you take advantage of writing html as css selectors.
As example:
I found interest plugin for most IDEs (and for textmate too), named Zen Coding.
It lets you take advantage of writing html as css selectors.
As example:
While developing using TextMate and Ruby, i got bored by switching tabs between, to run base(general) file. Then, i dived into how the mate runs ruby-files. And wrote some solutions:
First rule realization, using comments, i.e. line that have # and scope isn’t value Second, thanks to textmate, using project-only envirnmental variables
File to edit: ~/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb
You should look at line ≈ 54, and find File.open(ENV["TM_FILEPATH"]) do |f| and till next def path_to_url_chunk(path) replace with this code:
File.open(ENV["TM_FILEPATH"]) do |f|
data = f.read
execute_file = data.scan(/^\s*[#]+ tm_run_file (.+)/).last.to_s
if File.exists? execute_file
Dir.chdir File.dirname(execute_file)
cmd << File.basename(execute_file)
elsif ENV['TM_PROJECT_RUN']
Dir.chdir ENV["TM_PROJECT_DIRECTORY"]
cmd << File.join(ENV["TM_PROJECT_DIRECTORY"], ENV['TM_PROJECT_RUN'])
else
cmd << ENV["TM_FILEPATH"]
end
end
Usage:
# tm_run_file ..., run file specified as ..., example: # tm_run_file pcap-reader.rbTM_PROJECT_DIRECTORY, run that file, example: 