textmate

How do I get Textmate to use MacRuby?

南楼画角 提交于 2019-12-05 02:34:13
问题 So, how do I get Textmate to use MacRuby, a branch of 1.9.2, instead of the default Ruby in OSX, 1.8.7? 回答1: Simpler answers: Install MacRuby Go to TextMate->Preferences->Advanced->Shell Variables and add a variable named TM_RUBY set to /usr/local/bin/macruby . Alternatively, edit the PATH variable to include /usr/local/bin/ and just set TM_RUBY to macruby . If you have installed MacRuby through RVM, then instead: Generate stable wrapper: rvm wrapper macruby-0.8 macruby # creates ~/.rvm/bin

Has anyone managed to use older Textmate bundles with Textmate2?

亡梦爱人 提交于 2019-12-05 02:01:53
I specifically want to be able to use Ackmate bundle, peepcode (the new 'Go to file' seems good enough) and some other custom bundles with TM2. I tried moving the existing bundles to a location ~/Library/Application Support/TextMate/Managed/Bundles/Managed which seem to contain all the new installed bundles, and a few other hack. But no luck yet. I did manage to get the older themes working with TM2 though, with an approach similar to the one above. EDIT: I found this article on the topic.But still not able to get some older bundles to work. http://blog.macromates.com/2011/locating-bundles/

How to update GetBundles in TextMate?

陌路散爱 提交于 2019-12-05 01:23:30
问题 I originally installed GetBundles using Trey Piepmeier's instructions. Afterwards, I installed all TextMate bundles using GetBundles. I noticed that my copy of GetBundles was old, so I did the following: cd ~/Library/Application Support/TextMate/Bundles/ svn co http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle/ When I restarted TextMate and opened GetBundles, a dialog box popped up asking me to select the source for many—if not all—of my bundles. I can't remember which version

IN TextMate I can't create partials with Rails tmbundle

一曲冷凌霜 提交于 2019-12-05 00:15:50
问题 /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `to_plist': An object in the argument tree could not be converted (ArgumentError) from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `request_string_core' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:193:in `request_string' from /Users/pma/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/create_partial_from_selection.rb:23:in `<main

How do I use a shortcut to comment out code automatically in Textmate?

我的未来我决定 提交于 2019-12-04 22:46:37
Is there a shortcut to highlight and comment code in textmate, rather than putting in the comments manually? tamasgal If you have the Source bundle installed: ⌘/ If you don't, go to TextMate > Preferences > Bundles and check Source . ⌘/ comment/uncomment selection shift + ⌘ + 7 or instead 7 the key with the slash "/" 来源: https://stackoverflow.com/questions/8256834/how-do-i-use-a-shortcut-to-comment-out-code-automatically-in-textmate

How can I find the character code of a special character in my text editor?

北城余情 提交于 2019-12-04 17:59:25
问题 When pasting text from outside sources into a plain-text editor (e.g. TextMate or Sublime Text 2) a common problem is that special characters are often pasted in as well. Some of these characters render fine, but depending on the source, some might not display correctly (usually showing up as a question mark with a box around it). So this is actually 2 questions: Given a special character (e.g., ’ or ♥) can I determine the UTF-8 character code used to display that character from inside my

Highlighting trailing whitespace in Textmate for Python?

偶尔善良 提交于 2019-12-04 17:43:16
问题 I would like to do something like this Textmate tip, so that trailing whitespace are always highlighted in some way when I code something in Python - it makes it easier to correct it immediately and other editors such as Emacs can do it. Unfortunately the discussion after that post seems to suggest it's difficult to do. For me the invalid.trailing-whitespace scope selector is not even visible in the preferences after following this tip. Has anyone else had any success with this? 回答1: This

Textmate “comment” command not working properly for css code

倾然丶 夕夏残阳落幕 提交于 2019-12-04 17:09:42
I'm having some problems when I toggle the comments in TextMate for CSS source code. Using the shortcut CMD + / I activate the "Comment Line/Selection" command from the "source" bundle. The problem is that it inserts a series of // for all kinds of languages. For example, in CSS files it is supposed to insert a /**/ block, but it doesn't. In CSS files I also tried the "Insert Block Comment" command from the source bundle with the weird result that I get the following // . // ---------------------------------------- instead of my code, deleting the code and inserting that. I know I am supposed

Notepad++ 更改和定制主题

倖福魔咒の 提交于 2019-12-04 16:36:33
新版的notepad++都支持更换主题,方法很简单:菜单上的“设置–语言格式设置,就可以选择不同的主题了。 若是觉得这些主题不满意,你还可以自己定制更多主题,使用的是TextMate—— The Missing Editor for Mac OS X ,这个里面有很多漂亮的主题,不过格式是不一样的,Notepad++用的是xml格式来配置主题的,而TextMate则是tmTheme文件,需要一些转换。 1. 首先确认你已经安装了Notepad++, 然后进入 Textmate Theme Directory ,下载你中意的主题 2. 用Notepad++打开下载好的 .tmTheme 文件 3. 用 (Ctrl+A)全选并且复制 4. 进入下面这个网址 theme converter page 来转换主题 5. 将刚刚复制的内容粘贴到网页中央的文本输入区域,并且点击下载按钮保存到本地计算机 6. 将下载下来的文件的扩展名由 .text 改为 .xml ,比如style.xml 7. 将此xml文件放到Notepad++下的\theme\文件夹下面,并且重启Notepad++ 8. 对于最新的版本则可以在Notepad++主界面选择“设置——import——import style theme(s)”[win7估计是写权限设置,没有成功,需要手动拷贝] 想偷懒的话就 猛击这里

Can't build XCode 4 Project from Textmate

有些话、适合烂在心里 提交于 2019-12-04 13:30:05
问题 I've opened a newly created XCode 4 project in TextMate (by dropping the project folder on the TextMate icon like the manual suggests) and have attempted to build it using the Command-B shortcut and selecting 2 for an XCode build. I get the following error xcodebuild: error: invalid option '-activebuildstyle' Usage: xcodebuild [-project <projectname>] [[-target <targetname>]...|-alltargets] [-configuration <configurationname>] [-arch <architecture>]... [-sdk [<sdkname>|<sdkpath>]] [