textmate

How to change file type in textmate

余生颓废 提交于 2020-01-02 02:43:11
问题 It will give you a selection when you open a new file in Textmate. It asks you what the file type is and let you select a grammar for the new file. So how to change the file grammar after I selecting the grammar once? 回答1: There's a button on the bottom bar. You press it, and there they are, all possible syntax modes with their shortcuts: 来源: https://stackoverflow.com/questions/13099383/how-to-change-file-type-in-textmate

Python Script Won't Run Via TextMate, OK in IDLE and Eclipse

不羁岁月 提交于 2019-12-30 07:43:46
问题 I wrote the following for a homework assignment and it works fine in IDLE and Eclipse running Python 3. However, I tried to run it from TextMate with the new line 1 -- which I found here -- to point it to Python 3 on the Mac. It seems to be running Python 3 but returns an error. It says: EOFError: EOF when reading a line. It's referring to line 5 below. Anyone know why? BTW, this TextMate issue is not part of the homework assignment, so I'm not trying to get homework help. I just want to

Importing java classes text editor

不羁的心 提交于 2019-12-25 16:35:52
问题 Recently I started using a text editor (text mate) instead of eclipse to program in Java. I hava file1.java in a folder A(/Users/kevincastro/Documents/Code/estructuras/clases) and a file2.java in folder B(/Users/kevincastro/Documents/Code/estructuras/datastructures). I want to import file2.java to file1.java but it doesn't word. I've tried : import Users.kevincastro.Documents.Code.estructuras.datastructures.*; import datastructures.*; import Documents.Code.estructuras.datastructures.*; none

Importing java classes text editor

故事扮演 提交于 2019-12-25 16:34:06
问题 Recently I started using a text editor (text mate) instead of eclipse to program in Java. I hava file1.java in a folder A(/Users/kevincastro/Documents/Code/estructuras/clases) and a file2.java in folder B(/Users/kevincastro/Documents/Code/estructuras/datastructures). I want to import file2.java to file1.java but it doesn't word. I've tried : import Users.kevincastro.Documents.Code.estructuras.datastructures.*; import datastructures.*; import Documents.Code.estructuras.datastructures.*; none

TextMate: Find in Files seems to have out-of-date cache (maybe because of AckMate?)

别说谁变了你拦得住时间么 提交于 2019-12-24 21:16:41
问题 I have installed AckMate a while ago, and the problem I describe here never happened to me before, so maybe it's because of AckMate...? Here we go: often when I'm searching inside a project, TextMate finds occurrences of the search pattern in "old versions" of files, meaning it the search pattern has definitely been there once, but isn't anymore! Take a look at the screen: I searched for encoding_name, and it found it, but when opening the file, there it isn't anymore (but it has been there a

Module cannot be found when using “pythonw” (instead of “python”) to run an application

爱⌒轻易说出口 提交于 2019-12-24 05:11:36
问题 I tried this minimal example: from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' if __name__ == '__main__': app.run(debug = True) When I try python hello.py , everything goes well. However, when I try to run it from Textmate (Shift + Cmd + R) an error is thrown: Traceback (most recent call last): File "/Users/user/EventFeed/hello.py", line 1, in <module> from flask import Flask ImportError: No module named flask Textmate calls pythonw

⌃⇧H in TextMate to 'Tidy' HTML causes NoMethodError

余生颓废 提交于 2019-12-24 05:06:08
问题 I tried using 'Tidy' in an HTML document for the first time yesterday, and got... /tmp/temp_textmate.Z2P0KX:30:in `<main>': undefined method `empty?' for nil:NilClass (NoMethodError) I've not done anything to the code in the bundle... #!/usr/bin/env ruby -wKU require ENV['TM_SUPPORT_PATH'] + '/lib/ui.rb' require ENV['TM_SUPPORT_PATH'] + '/lib/exit_codes.rb' result = `"${TM_TIDY:-tidy}" -f /tmp/tm_tidy_errors -iq -utf8 \ -wrap 0 --tab-size $TM_TAB_SIZE --indent-spaces $TM_TAB_SIZE \ --indent

How can I convert a Sublime Text syntax highlighting file to a textmate syntax for visual studio?

拟墨画扇 提交于 2019-12-23 03:35:22
问题 I am trying to start using visual studio for my code editing instead of Sublime Text 3. In sublime text 3, I have a custom syntax file for a language I work in. I would like to be able to carry the syntax highlighting over to visual studio. I am not quite sure how I could do that without starting from scratch. Any ideas? In response to Matt, here is an update: I have been trying to get it to work, but I have had no luck. It does say that textmate languages are supported: https://docs

How to import libraries from JAR-files into a Java program using TextMate

你说的曾经没有我的故事 提交于 2019-12-22 13:06:29
问题 I need to write a simple program in Java and would love to do it the same way I program in Python and Ruby using TextMate. I can write and run a simple Hello World program, but cannot find a way how to load external libraries. I just need to compile with all *.jar files from the working directory (or do I need to intall them first?). This is my first Java-experience, so I would appreciate a detailed answer. I do prefer to code in TextMate not an IDE, so I wonder if this is possible with Java.

Ruby IDEs: any worth looking at?

匆匆过客 提交于 2019-12-22 09:31:10
问题 I currently use TextMate for all my Rails development, and I like it very much, but I wonder if I'm missing anything by not using an IDE. Has anyone switched from using TextMate or another powerful text editor to a Ruby IDE? Am I missing anything? 回答1: JetBrains, the people who created the legendary IDEA IDE for Java, have RubyMine in beta. DHH has mentioned it, so it must be good! 回答2: TextMate is king for Development on Mac, it's not too bloated and has so many good bundles made by the