Shortcuts (⌘→ & ⌘←) with Textmate and Snow Leopard
Don’t know why these two shortcuts (aswell as home and end buttons) stoped working in textmate after I upgraded to SL.
The solution (based on this post of the textmate blog) is simple:
Create and edit the DefaultKeyBinding.dic file:
mkdir ~/Library/KeyBindings
cd ~/Library/KeyBindings
touch DefaultKeyBinding.dict
open -a TextMate DefaultKeyBinding.dict
Paste these bindings
{
/* home */
"\UF729" = "moveToBeginningOfLine:"; /* home */
"@\UF702" = "moveToBeginningOfLine:"; /* command + left arrow*/
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
"$@\UF702" = "moveToBeginningOfLineAndModifySelection:";
/* end */
"\UF72B" = "moveToEndOfLine:";
"@\UF703" = "moveToEndOfLine:";
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
"$@\UF703" = "moveToEndOfLineAndModifySelection:";
/* page up/down */
"\UF72C" = "pageUp:";
"\UF72D" = "pageDown:";
}
Restart Textmate & enjoy : )
probando coderay higlighter
1 2 3 4 5 6 7 8 9 |
require 'rubygems' require 'coderay' input = File.open("input.rb", "r") output = File.new("output.html", "w") code = "" input.each {|line| code << line} output.puts CodeRay.scan(code, :ruby).div(:line_numbers => :table) |
de la colección de libros que nunca esperé encontrarme en teleco








