Hi all-
Stumped over the following regex for a block comment:
> begin = '(?<=0 : 0$)';
This actually works, but I need to generalize it to one or more whitespace characters between the "0" and ":", and then between the colon and final zero.
Tried things like:
> begin = '(?<=0\s+:\s+0$)';
but Oniguruma gets really irked at me.
Grateful for any thoughts or pointers...
Thanks, Charles
For the past few days TextMate has had this odd behavior where it plays the "Funk" sound every time TextMate loses focus. It's not just on a particular project, file, window… it's everything, the app as a whole. I tried looking in console but nothing popped up.
I haven't added any new bundles, plugins, snippets, etc… for a while and I haven't messed about in preferences for eons. Everything wrt TextMate ought to be status quo from a few days ago so I question whether it has anything to do with TextMate at all.
Is this familiar to anyone?
TextMate Version 1.5.10 (1623)
Mac OS X 10.6.6
Mac Pro 2 x 2 GHz Dual-Core Intel Xeon
Ram: 8 GB 667 MHz DDR2 FB-DIMM
Adam Merrifield
seyDoggy Systems
seydoggy.com
820 Strasburg rd, Kitchener,
Ontario, N2E 2Y3, Canada
Email: info(a)seydoggy.com
Office: 519-489-6033
Cell: 519-574-9788
bugs(a)macromates.com returned a permanent failure. So I will report the weird behaviour I notived.
I have a long source file (300-400 lines). I put my caret at line 200 and scrolled (with a mouse) down to the bottom. I then pressed right-arrow to go to the symbol to the right of my caret expecting the window to scroll to show where my caret is. The window does scroll, but it scrolls to the top of the document instead of to the exact position of my caret. I will attach a movie:
http://dl.dropbox.com/u/323865/Textmate%20scroll%20bug.mov
As the window start scrolling automatically, it's because I push right-arrow, the next time I push right-arrow again and finally the window actually shows what I am editing.
Rasmus Abrahamsen
Hello,
First question : I use with some latex document, the command "Create Html from Document"
of the Bundle TexMate. I would like to extract only the code between <pre> and </pre>, directly
How I can to do that ?
Second question : When I fold the code between <pre> and </pre>, the result
is ten lines of code, how to have only the first line?
Best regards
Alain
Hello,
I'm looking for a trick that would help me replace tabs by spaces in
selected area. I have source code that looks approximately like this:
<tab><tab>short<tab><tab><tab><tab>a;
<tab><tab>unsigned long<tab>b;
<tab><tab>int<tab><tab><tab><tab><tab>c;
which is only aligned when some specific size of tab is chosen. I
would like to keep the first two tabs (to preserve nice alignment),
but replace the tabs between "short" and "a", so that the text would
be aligned under any tabulator width setting.
I cannot use just "Search & Replace" because the first tab has
variable width (depending on its starting position).
If there is no out-of-the-box solution, I know some ruby, so I could
write a program that would perform the task for me, but I'm not sure
how to pass the following information from TextMate to my script:
- at which column does my selection start (I would like to "alt"-select a "box")
- how wide is the current tab
But I hope that there exists an easier solution.
Thank you very much for any hint ...
Mojca
RE: replacing tabs with spaces in selected area
You can use regular expressions in search and replace to do what you want,
but there is also a built in command. Click 'Text' on the menu bar, then
under 'Convert' click Tabs to Spaces. It will only convert the tabs in the
current selection. Hold the option key while selecting to select a box
rather than the entire lines.
RE: How to change <form> tag coloring?
This is actually very easy (in theory), I'm surprised more people don't know
how TextMate works. I'll tell you the steps to add a scope
called meta.tag.block.form.html to your html language bundle which can be
styled individually. Note: this only adds a scope to the tag itself. The
'block' part of the language file must be modified in a similar way to style
the block.
Open the bundle editor, go to the html bundle, then go to the HTML language
file. Find the block within the patterns section that starts { name =
'meta.tag.block.any.html';. Select that entire block (from { to }, ) and
duplicate it. Of those two identical blocks, you will be editing the one
that appears closer to the top of the file. Change meta.tag.block.any.html
to meta.tag.block.form.html. Now change the line that starts 'begin' = ...
to begin = '(</?)((?i:form)\b)';
Done! Open an html file and press shift+control+p in some different tags
and you should see the change in scope from any.html to form.html. I added
a style to my theme for meta.tag.block.form.html and it only styles the form
tags. You will have to play with it to get it exactly how you want, but I
hope this gives you enough info to get started.
<3 TextMate
Brandon
I've searched the forums and read as much of the documentation as I could,
and I cannot find a straight-forward answer to my question. I'm trying to
color specific tags and elements associated with those tags.
Using <form></form> tags as an example: I'd like to color these tags and all
the elements within them a bright yellow.
Any help would be greatly appreciated.
--
View this message in context: http://old.nabble.com/How-to-change-%3Cform%3E-tag-coloring--tp30747855p307…
Sent from the textmate users mailing list archive at Nabble.com.
Hi folks,
I've got a latex article, me.tex, that includes a graphic mefig.eps.
If I compile via the command line:
pdflatex mefig.eps
the compilation process uses Ghostscript to create an intermediary
file mefig-eps-converted-to.pdf and generates me.pdf with no errors.
When I compile from TextMate (whether I use pdflatex or latexmk.pl
doesn't matter), I get an error:
------------
!!! Error: Cannot open Ghostscript for piped input
Latex Error: ./epstest.tex:14 Package pdftex.def Error: File
`breakevenb1-eps-converted-to.pdf' not found.
---------------
I am using the latest version of TextMate (with the default Latex
bundle) and TexLive 2010 (I actually uninstalled my TextMate and
re-installed from scratch to make sure it wasn't a config quirk on my
end). Any ideas here? Shouldn't TextMate simply be issuing the
command "pdflatex my.tex", which work from Terminal?
Thanks,
Jim
I have always been able to drag and drop a QuickTime movie into an
HTML page and the requisite object/embed/ActiveX tag structure is
automagically built. Now, on my new MacBook Pro Snow Leopard, in a
user account I built using the Apple Migration Assistant from a
Leopard MacBook Pro, this no longer works. I get a cryptic error
pasted into the current document instead of my code.
How is this supposed to work, so I can understand where to start
poking around? Does it rely on QuickTime 7 Pro being installed?
Thanks in advance,
Walter