Questions tagged [textmate]

TextMate is a text editor for macOS.

TextMate is a text editor for macOS, created by Allan Odgaard in 2004. Although it is still actively maintained, public-facing development was largely dormant for a decade after 2007, during which time many users migrated to other software. The current version of the software is 2.0.23.

The code is open source, and is hosted on Github. Questions about development of the editor and its bundles are on topic at Stack Overflow.

As an editor targeted primarily at the development community, questions about general use of TextMate are also on-topic. Please check end-user documentation for possible solutions before posting.

1125 questions
-1
votes
2 answers

chruby, and Ruby gems "cannot load such file — "

I recently moved to a new iMac and did a clean install. Consequently not everything works like it did on my MBP. I made several changes suggested by @awsmsce and have incorporated that into the following. Still have the problem. A ruby script that…
Greg
  • 2,359
  • 5
  • 22
  • 35
-1
votes
2 answers

Matching all lines between two lines recursively in ruby

I would like to match all lines (including the first line) between two lines that start with 'SLX-', convert them to a comma separated line and then append them to a text file. A truncated version of the original text file looks…
Sebastian Zeki
  • 6,690
  • 11
  • 60
  • 125
-1
votes
5 answers

Regex to remove all functions from a js file [Textmate preferred]

I'm working on a large and extremely messy javascript file, and I would like to remove all functions from the file, ultimately creating a version which contains only data. the code looks something like this: var foo : bar = "hi"; function foobar…
mjames
  • 220
  • 2
  • 13
-1
votes
2 answers

What is a better way to write this regular expression?

I am converting XML children into the element parameters and have a dirty regex script I used in Textmate. I know that dot (.) doesn't search for newlines, so this is how I got it to…
rxgx
  • 5,089
  • 2
  • 35
  • 43
-1
votes
1 answer

Textmate broke my Java? Exception in thread "main" java.lang.NoClassDefFoundError

I ran a Java program using TextMate on OS X once and I can't use Java anywhere else anymore. On the simplest program, I get: Exception in thread "main" java.lang.NoClassDefFoundError: Gateway (wrong name: org/mcgill/telecom/Gateway) Whether…
xster
  • 6,269
  • 9
  • 55
  • 60
-1
votes
3 answers

How do I fix a NoMethodError?

I did a fresh install on a MacBook Pro, and installed Mavericks, MacTex, Textmate and Texlive. I am trying to work with some LaTex documents and I get this error on build: undefined method `+' for nil:NilClass (NoMethodError). In previous uses I…
user36146
  • 11
  • 1
-1
votes
1 answer

TextMate doesn't work with .rvmrc anymore after collegue changed it

Some while ago, our .rvmrc file looked like this (pretty default): #!/usr/bin/env bash # This is an RVM Project .rvmrc file, used to automatically load the ruby # development environment upon cd'ing into the directory # First we specify our…
Joshua Muheim
  • 12,617
  • 9
  • 76
  • 152
-1
votes
1 answer

Ultraviolet + Textmate for Ruby? How do I use this?

Ok so I've had my Macbook for 3-days now. I installed textmate and saw the cool Ruby syntax highlighting thing called Ultraviolet. I've installed the ultraviolet gem, but I don't get what it does. How exactly do I use it? Or is it installed…
kidapple
-2
votes
0 answers

How do you do syntax highlight a token in a textmate grammar for a Visual Stuio Language extension besed on its declaration

I'm looking to syntax highlight tokens that are different types based on their definition which would seem to require lookbehind "?<=" but that doesn't seem to be supported by textmate for basic language syntax highlighting extensions for visual…
-2
votes
1 answer

Regular Expression to Match Lines Ending with Comma - TextMate

I have multiple lines such as: a,b,c,10 d,e,f, g,h,i,19 l,m,n, o,p,q,21 I need a regular expression that will match all lines that end with a comma. So the second and fourth lines. It should work for any line, not just the ones above. I am using a…
pseudorandom
  • 267
  • 5
  • 20
-2
votes
1 answer

Summer Camp TextMate theme

A while back on the User Submitted Themes wiki page on the TextMate site there was a link to the theme "Summer Camp", the entry is still there but the link no longer works. I'm wondering if anyone has this theme and is willing to share? Thanks in…
Emily Laguna
  • 636
  • 1
  • 8
  • 13
-2
votes
1 answer

How to find and replace a list of words with a list of words in textmate or with perl

I have a long list of words as follows word1 word2 word3 word4 word5 word6 word7 I would like to do a find and replace on these words without individually finding a word. Id like to create a list of find targets and run this just once eg my target…
Sebastian Zeki
  • 6,690
  • 11
  • 60
  • 125
-2
votes
2 answers

"mate sample.js" command not working from Mac terminal

I tried creating a new js file from the mac terminal (i.e., mate sample.js) but got the below error: -bash: mate: command not found I'm not sure how to create a new file directly from the Terminal. Can anyone help me out?
Abilash
  • 221
  • 1
  • 2
  • 9
-4
votes
2 answers

Regex a ruby block argument and all instances within the block

I have been trying to develop a regex to match a block's argument, and then all the instances of that argument. Using this example: File.open(inFile).each do |line| line.chomp! if line.empty? then next elsif line =~ /^>/ …
AGS
  • 14,288
  • 5
  • 52
  • 67
-5
votes
3 answers

PHP Code Editor for Windows

Currently I use TextMate for PHP editing on MAC. I would like to know what good editors for WINDOWS (comparable to TextMate) are. The most important feature I expect that the editor should support is the "auto-complete of code snippets", like: p…
Prakash Raman
  • 13,319
  • 27
  • 82
  • 132
1 2 3
74
75