I am unable to use the File/New from Template/Python/* menu item, or to
create a new file in an open project, by any of the available means
(application File menu, control-click in project drawer, use gear icon
menu). I gather, from following several different Google searches, that my
problem(s) has/have something to do with the search path that Textmate is
using to look for the template files, but I can find no information
regarding what I have to change or how I have to change it to make the
correct path(s) available to TM.
I know that the Python.tmbundle file lives in "/Library/Application
Support/TextMate/Bundles/", but when I add that directory to my PATH in
~/.bash_profile, that doesn't change anything.
I would be really, really grateful for a simple "do it this way" solution to
my problem.
Thanks.
Richard
Hi everyone,
I'm using a regular expression to find groups of text that I need to
replace. But instead of replacing the actual text that I have
selected, I want to simply append some text to the end of the line
that has been returned. For example, if I search in the project,
retrieving ten different lines of code, how to do I insert a specific
string of text (e.g. "Put this text at the end of the line") at the
end of each of those lines?
Is there a way to do this?
Thanks in advance!
Everyone/Anyone,
I'm new to Textmate (and just about everything else), and I just
finished reading the Textmate book (some sections got a thorough once-
twice-thrice-over). Very good book, now I'm hooked on Textmate.
I'm just an amateur web developer looking to increase my skill and
knowledge. Textmate has been a great companion as It allows me to get
out of Dreamweaver and into the code, but I find that I have lost
some of the "project management" features of Dreamweaver. ie, being
able to transparently upload completed development files from within
the application. (Sure I can still get it done with Transmit, but it
is clunky.) I searched the textmate discussions and wiki and came
away with the conclusion that SVN is the answer. Problem is I know
nothing about SVN... or where to start.
So, my question is... "What is SVN, can I really use it to manage a
production website, and what is the best place, resource, book to get
information on how to install, configure, and use it?" Sounds dumb
right. Well we all have to start somewhere.
(I googled it and found more information than I can shake-a-stick
at. So I thought that I would ask a smaller community that may
better understand my situation and give a little more intelligent mac-
oriented feedback.)
Thanks,
Ethan
So, my copy of JEG2's TextMate book has arrived down under, and I'm
really enjoying getting a better understanding of TextMate.
Being an avid AppleScripter, this was my first attempt at a bundle
command--to look up a selection in a FileMaker database:
osascript <<-ENDSCRIPT
set title to "${TM_SELECTED_TEXT}"
if title ≠ "" then
tell application "FileMaker Pro Advanced"
if not (exists window "HachetteTitles") then open alias
"Path:To:My:Database.fp7"
set cell "_Search" of layout "Titles" to title
do script "Search For Title"
set href to cell "_Search" of layout "Titles"
set img to cell "_thumb" of layout "Titles"
end tell
if href ≠ "" then set title to img & href
end if
return title
ENDSCRIPT
I know this script method works fine outside of TextMate, but no
matter what I do I get errors running it inside TextMate:
31:32: syntax error: Expected “then”, etc. but found unknown token.
(-2741)
I'd certainly appreciate any help diagnosing this one.
--
Tim Mansour <tim(a)neologica.com.au>
Is there any way to copy source out of TextMate such that the
formatting stays intact?
I.e. I want to be able to paste code into Pages, preserving font,
format and color.
b.bum
Hi everybody,
I have been using Textmate together with PDFView on my powerbook w/
out any problems.
Recently I moved my account to Mac OS X Server. And it won't work
till then.
On the local machine I installed Latex/Textmate/PDFView.
A test with Texshop worked w/out any problems. But when I cmd-R in
Textmate no
preview is shown (the pdf is typesetted correctly, though).
TM_LATEX_VIEWER is set to PDFView, but nothing happens.
What do I need to do?
Thanks
Chris
–––––––––––––––––––––
Christoph Biela
biela(a)glr.tu-darmstadt.de
–––––––––––––––––––––
Looks like I answered my own question here. It seems that tidy
requires ALL PHP start tags to be <?php and not just a <?. Hummm,
bummer, but that's ok, I think I can live with that. Thanks and sorry
for the bother.
Ron
====================
Newbie here, please excuse the apparent non-TextMate related
question. Has anyone seen a bundle or suggestions on using tidy (or
something) to convert old style HTML to newer transitional XHTML
without screwing up embedded PHP (or other) code? It seems that by
default tidy can really fowl up embedded PHP structures. I have a lot
of old PHP-based documents that I'd like to get somewhat brought up-
to-date.
Thanks,
Ron
*******************************************************
* Ron Patterson, Email: rpatter(a)asd20.org *
* Web Services, Phone: 719.234.1707 *
* Academy School District 20, FAX: 719.234.1706 *
* Web Site: http://www.asd20.org *
*******************************************************
If I write (a perfectly valid HTML4):
<div id=foo>
TextMate highlights everything up to next quoted string as an ID
attribute. The fix for it is to set:
end = '(?<=''|")|(?!>)';
for tag-id-attribute in HTML's language definition.
There's even no scope for non-quoted attributes. I've managed to add it
using back-assertions (?<=[^=]) for attribute and (?<==) for scope of
uquoted string.
I'm not sure if these are proper solutions - does TM understand something
like 'adjacent scopes'?
--
regards, porneL