Hi. I've been trying to modify the HTML language so that it understands
embedded Python code, as you find in a Kid template. For example:
<?python
def shoe(potato):
pass
?>
By default TextMate thinks it's PHP code (source.php.embedded.html).
I thought it would be pretty straightforward, and copied the chunk
of config that appears to setup embedded ruby. I ended up with this,
defined just beneath php-source:
python =
{ name = 'source.python.embedded.html';
begin = '(?:^\s*)<\?python(?!.*\?>)';
end = '\?>(?:\s*$\n)?';
patterns = (
{ name = 'comment.line.number-sign.ruby';
match = '#.*?(?=-?%>)';
},
{ include = 'source.python'; },
);
};
However, when I click "Format" and "Test" in the Bundle Editor the text
in my editor is still marked up as PHP. I removed all the PHP stuff to
see if it was overriding the Python settings, but it didn't help.
What should I be doing for this?
Cheers...
--
Graham
This email is a bit off topic, but I thought it might be useful to any
developers who are making screencasts. I've written a little ruby
script called ghostwriter which uses apple gui event scripting to
produce applescript that makes it looks like you're typing. I've found
it very useful when for making demo code, because unlike me, the
computer never makes a typo!
It's available at http://www.had.co.nz/ghostwriter/
Hadley
On some occasions I use to code html pages with Romanian special
characters. Unlike with the German special characters (ä etc.) I
feel better to use the standardized entities for Romanian characters
in the form ă etc.
In TextMate I could not find out yet how to convert a text selection
with Romanian special characters typed so that only the special
characters are converted to entities. In my page *every* single
character is replaced by its entity and makes the text illegible.
Where is the solution I missed in the manual?
Hello,
the Move Selection Line Up / Down feature does not seem to work correctly.
I have
A
B <caret
C
then press cmd-ctrl-up and get
B
A <caret
C
The caret should also move up one line, so I can further move the line, no?
Moving down from
A <caret
B
C
gets me
B
A
C <caret
As you can see, the caret is misplaced again.
Can someone confirm this, or is it some local problem of mine? I use
Textmate r847.
Bye,
Martin
(Sorry, if this message goes through twice. I originally tried the
gmane NNTP access but don't see my posting in the archive)
Hi,
sorry if this is a common question, but I searched the wiki and the
ml archives a couple of months back and I could not find an answer.
The TextMate service does not appear on my services menu. TextMate
was installed a couple of weeks ago, and I've logged out and logged
in a couple of times since then and still nothing.
I'm using version Version 1.1b17 (847), and TextMate is installed
inside the /Applications folder.
Thanks in advance,
--
Pedro Melo
JID: melo(a)simplicidade.org
Greetings,
I've been searching for the official line on variable width fonts in
TextMate but cannot find it anywhere---though I seem to remember
reading it before. Is it on the to-do list at all? I understand that
for most(?) TM users it is a non-issue, being programmers, but as I
use TM 95% for ConTeXt/TeX paper writing, it sure would be nice.
Anyway, I bring it up again because it occasionally starts to bug me,
and I can't leave the editing capabilities of TM behind ;).
Kind regards,
David
This would be an awesome feature. Has it been requested yet? Thanks,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
I searched through the archives to see if there was some sort of
functionality that would list all your TM Projects in a concise list
(in either a sticky or popup window) to ease switching to different
projects.. Didn't find anything (did I miss something?) and ended up
putting something together with Butler that is really slick and
thought I'd share.
* I moved all my .tmproj files to a single folder in my Websites
directory
* added a container in Butler with the folder containing all
my .tmproj files inside it
* assigned the container a hotkey ctrl-opt-w and set it to: "Opens a
menu near the mouse"
I previously had all the .tmproj files inside each site's homedir,
and set Butler to only show files with a .tmproj extension with 2
levels of recursion, but it was too slow. Making a dedicated tmproj
folder makes this an instantaneous popup with ctrl-opt-w that shows
all my TM projects, which can be opened by keyboard or mouse. (I
guess this could be done with within TM with shell commands, too, in
a very similar manner, but using Butler allows you to open a project
from anywhere.)
Also, this is buried in the wiki, but what put me over the fence on
agreeing S/FTP integration in TM was unnecessary, allowed me to drop
Dreamweaver from my workflow completely, and caused me to buy
Transmit & TM instantly was this simple command:
osascript -e 'tell app "Transmit" to open POSIX file "'"$TM_FILEPATH"'"'
Set this to a command triggered with cmd-shift-u, and TM first saves
the local file, then sends the file to Transmit, which will then auto-
upload to the appropriate server if the file belongs to a DockSend-
enabled favorite in Transmit. (Allan has this listed for Interarchy
in the wiki: I just changed "Interarchy" to "Transmit".)
Nate.
---------------------
CLIXEL Design & Coding
http://clixel.com/
So, I know that this is already on the todo list, but I'm curious
what the status of nested snippets is. I'm talking about initiating
another snippet while still in the placeholder of another snippet.
Then when you tab out it would return to the previous snippet(s).
I'm sure a few thorny issues might come up in implementation, but the
general idea is just a stack of active snippets instead of a single one.
The reason I ask is because often when I create snippets I am forced
to choose between something like:
<p>$0</p>
and
<p>$1</p>$0
The first one is sometimes preferable because I can then put another
snippet right in. However in general I would prefer to use the
second form. With nested snippets we get the best of both worlds.
TextMate already had an easy time replacing BBEdit for me, but this
feature alone would probably double my HTML creation speed.
> I'm intrigued.
>
> are the movies teensy, or are my eyes failing? I wanna see what
> youre *doing* ..
Yeah, the movies are teensy... 30% I think. I'll up some larger
versions when I get around to re-recording them ;)
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi.
I have created a two reference cards for the TextMates default
keymap, and most of the RoR related snippets. Not much, but they have
helped me...
André M. Bonkowski
Hi,
If I set the scope of a doc to SQL and enter a select statement, I see this:
In pepper (TextMate¹s spiritual parent as far as I am concerned: soooo far
ahead of its time on everything except folding!), I get what I expect:
Am I doing something wrong?
tim
Hi,
Since I updated from the previous to the latest TM version, any time
I switch from another application to a TM window TM is unresponsive
(pizza wheel) for approximately 3 seconds (time appears to depend on
how many projects are open).
Even if I have TM front, click any other App's window and immediately
back to TM that delay is observed.
Gerd
(I read the manual, did a search of the archives for "diff FileMerge" and
read all hits before writing this email, and I have also tried a couple of
the Diff commands in the Subversion bundle.)
I am wondering if, either as part of Allan's documentation effort, or as
some bundle maintainer's efforts, a simple "How to Find Differences Using
TextMate" document could be written. Because I confess, I am at sea as to
how to get a useful, usable diff of two similar documents.
My gold standard for usable differences is (as many of the list postings
discussed) BBEdit. In particular, it has a menu command, "Compare Two Front
Documents", which provides a highly usable interface to locate, review, and
merge/modify the differences between two open documents. FileMerge, while
flawed in some important ways, also provides a reasonably useful way of
interacting with two files. (The diff output of the Subversion bundle is
not suitable to my group's needs.)
For me, it's *critical* that a usable diff command *not* require either
document to be under revision control. I am the first person in my group to
be using any form of revision control more sophisticated than DreamWeaver's
simple file locking. Subversion is being used only on new projects which I
am in charge of, which is a very small percentage of the stuff I'm working
on, so it'll be a good while before I can count on having stuff in
Subversion.
Perhaps this suggestion will be taken as rude (and it won't be useful for
non-BBEdit converts who don't have a BBEdit license), but it would be
perfectly acceptable for a TextMate differences command to simply pass
along the two file references to BBEdit's command line differences program,
bbdiff, if the process would allow me to resolve my differences there and
have the results saved back into my open documents in TextMate. A more
universal version might use FileMerge instead of bbdiff.
Last, an offer: If there is an acceptable differences command already, and
someone will write up a quick list of the steps to use it ala the "Compare
Two Front Documents" command, I will write up a complete tutorial, complete
with screenshots, etc., suitable for the complete newbie (such as myself,
and my co-workers).
I'm a good technical writer, by way of credentials, here are some URLs to
Mac OS X documentation I've written:
* PGP Desktop Manual Proxy Settings: <http://aldoblog.com/blog/493>
* Getting Started with m0n0wall:
<http://www.aldosoft.com/docs/m0n0wall-getting-started.html>
* A whole series of articles covering audiobooks on iTunes and the iPod:
<http://aldoblog.com/audiobooks/>
So, I'll commit to writing some quality docs for the wiki covering a
differences command, if someone will point me in the direction of a
differences command that is useful for my (and my co-workers') needs.
Thanks!
--
_____________________________________________________________
Michael A. Alderete <mailto:lists-2003@alderete.com>
<http://www.alderete.com>
> On 18/12/2005, at 2:10, Michael Sheets wrote:
>
> > Actually... allan will have to back me up on this but I think it's
> > impossible. An empty line has nothing on it but the ending return,
> > and then only if it's not the last line. Therefore there is nothing
> > to actually be matched [...]
>
> Indeed, yes.
I believe you, but it's confusing because I can match all the empty
lines in a given document with "^$". Oh well. No dice.
Hey all,
Thanks to Allan & co (is there really an '& co'?) for all the hard
work--been using TM for about a year and still loving it :) I'm
having an odd issue which I fear is actually a feature and not a bug
(and I'm not even positive it's TM's fault), so to speak, but am
asking anyway.
Most monospaced fonts such as Monaco, Bitstream Vera Sans Mono,
Andale Mono, &c, show up as vaguely bold when antialiasing is turned
on; however I only realized this recently when messing around with
Markdown and its syntax highlighting.
When surrounding text with double asterisks, which as I'm sure
everyone knows is Markdown for bold, the text actually gets *less
bold* compared to the rest of the text! With antialiasing off, the
amount of bolding is normal, e.g. stuff in double-asterisks is
noticeably stronger than everything else.
When using Courier or Courier New, things also look more normal (with
antialiasing on *or* off). However, I hate coding with serif fonts,
so just switching to Courier isn't really an option. I've looked
around a bit for other fonts but so far they all display the same
behavior as the bunch mentioned earlier.
So. Is this something TextMate is doing, or is it at the system
level? In the various terminal apps I've never had issues like this.
And regardless, does anyone have any suggestions? I realize that at
the end of the day it's a silly thing to complain about, but I tend
to be a stickler about stuff like this; if, when writing in Markdown,
my italics are italic, I'd like my bolds to be bold too =)
Thanks for your time,
Jeff
--
Jeffrey E. Forcier
Junior Developer, Research and Development
Stroz Friedberg, LLC
15 Maiden Lane, 12th Floor
New York, NY 10038
[main]212-981-6540 [direct]212-981-6546
http://www.strozllc.com
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No right to
confidential or privileged treatment of this message is waived or lost
by any error in transmission. If you have received this message in
error, please immediately notify the sender by e-mail or by telephone at
212.981.6540, delete the message and all copies from your system and
destroy any hard copies. You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this message if you are
not the intended recipient.
Hi,
the Apache commands are fantastic! Using them highlighted a little
bug for me:
1. close all documents
2. go to Automation:Run Command:Apache:
expect: see "Open httpd.conf" usable
obtained: All commands grayed out
I think the best answer is to make them all available, even if this
is inappropriate, and let the command have some error checking to
feedback to the user that it needs a document, if necessary.
tim
我爱言论自由人权和民主
“I love freedom of speech, human rights, and democracy"
I also don't like the patriot act, or DCMA
I would assume that the following would assign a scope to an empty
line, but it's not working. Any ideas? Is this possible?
{ name = 'splay.empty';
match = '^$';
},