Is there a key combination for selecting a line (or lines) of code in a tag but
omitting leading and trailing spaces and tabs? I'm familiar with the Shift-Cmd-L
shortcut, but it leaves in the whitespace. This makes a mess of indented HTML
when I'm using the Ctrl-Shift-W and Ctrl-Shift-Cmd-W HTML shortcuts.
In other words, if I apply the combination Shift-Cmd-L followed by Ctrl-Shift-W
to this line:
Here's a paragraph!
I get this:
<p> Here's a paragraph!
</p>
instead of what I want, which is this:
<p>Here's a paragraph!</p>
Obviously I could use the mouse to select only the correct part, but I was
hoping there might be a keyboard shortcut.
If it's best to create my own macro using Regular Expressions, any pointers as
to how to get started would be helpful.
Many thanks!
jon
I'm trying to write a command that reformats Python triple-quoted
(""") strings. The scope of such strings is:
source.python string.quoted.double.block.python
when I create a command that has:
Input: Selected Text or Scope
and said scope as the Scope Selector, then run the command with the
cursor inside a triple-quoted string, the entire document is fed to
the command instead of just the triple-quoted string (the current
scope).
I've confirmed the scope via TM_SCOPE. Clearly I have the Scope
Selector correct else my command wouldn't be activated (I've bound it
^Q).
Any ideas?
j.
On Aug 30, 2007, at 11:54 PM, "Baluta Cristian"
<cristi.baluta(a)gmail.com> wrote:
> do you have this line in your mtasc.yaml ?
> params: -main
> this was my problem. this was for the projects wich compiled with a
> blank screen, but i think i remember your error also, was for single
> files.
Unfortunatly the problem isn't that simple. I get an error screen and
no compile. I am almost certain it is because the script is running
MTASC from the wrong scope, for when I run the same command manually
from Terminal it compiles fine.
I have no idea what could be causing this and have even deleted
TextMate and reinstalled with the same results.
> On 8/30/07, Aaron Clinger <aaron(a)odopod.com> wrote:
> On Aug 29, 2007, at 1:24 PM, Baluta Cristian wrote:
>
> > stopped to work after an update? a month ago i had this problem and
> > was something about settings file, is missing something wich was
> > default in the past. i'll try to come back with a link.
>
> I don't think so but maybe. It be great if you could pass me the link.
>
> Thanks.
>
>
> >
> > On 8/29/07, Aaron Clinger <aaron(a)odopod.com> wrote:
> >> The build with MTASC command suddenly stopped working for me on my
> >> work
> >> computer. I am at a total loss.
> >>
> >> I am now getting this output when I try to compile on projects
> >> that had
> >> previously worked:
> >> (unknown) : type error class not found : com.package.Class
> >>
> >> It seems in my testing that it might be using the folder that
> >> contains the
> >> class you currently have open, instead of the folder the
> >> mtasc.yaml resides
> >> in. I have tried using the same command in the right folder
> >> location from
> >> Terminal and it works fine.
> >>
> >> I am running the edge build 1414.
> >>
> >> Thanks in advance for any help.
> >>
> >> -Aaron
> >>
> >>
> _____________________________________________________________________
> >> _
> >> For new threads USE THIS: textmate(a)lists.macromates.com
> >> (threading gets destroyed and the universe will collapse if you
> >> don't)
> >> http://lists.macromates.com/mailman/listinfo/textmate
> >>
> >
> >
> > --
> > Cristi
> > www.ralcr.com
> >
> >
> ______________________________________________________________________
> > For new threads USE THIS: textmate(a)lists.macromates.com
> > (threading gets destroyed and the universe will collapse if you
> don't)
> > http://lists.macromates.com/mailman/listinfo/textmate
> >
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
>
>
> --
> Cristi
> www.ralcr.com
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
Hi
Not sure who's maintaining the PHP bundle (Ciarán?) but any chance
you could include this tiny, tiny snippet? It makes writing longer
blocks easier.

Also - I'm using Doxygen rather than PHPDocumentor (as it seems
easier to get it into TeX ? let me know if I'm wrong here!) - any
chance we could have
/**
*
**/
as the docblock defn? I don't think it interferes with PHPDocumentor,
and it makes folding easier on long comments.
Kind regards,
R
--
Richard Dyce MA (Cantab.) MBCS MIET
http://dyce.com
Hi,
I've been seeing this for some time, and I'd like to know if any of
you knows what the problem is:
Let's say I'm editing a file (file1.html), and I save it with another
name (Save as file2.html). After that action, I'll be editing
file2.html, but if I want to open file1.html, it doesn't show in the
project drawer. I can't access it using Command+T, either.
If I quit Textmate and reopen it, then I can see file1.html in the drawer.
Thanks!
The build with MTASC command suddenly stopped working for me on my
work computer. I am at a total loss.
I am now getting this output when I try to compile on projects that
had previously worked:
(unknown) : type error class not found : com.package.Class
It seems in my testing that it might be using the folder that
contains the class you currently have open, instead of the folder the
mtasc.yaml resides in. I have tried using the same command in the
right folder location from Terminal and it works fine.
I am running the edge build 1414.
Thanks in advance for any help.
-Aaron
Allan,
Just out of mild curiosity, how long has TM2 been self-hosting (i.e.
when did you switch from TM1 to TM2 in order to develop the rest of
TM2)?
As long as you're teasing us about it and all... :-)
j.
On Aug 27, 2007, at 7:00 AM, textmate-request(a)lists.macromates.com
wrote:
> I use textmate a lot to write in markdown. However, the documents
> I produce need to be printed out and proofread often. Is there any
> way to get textmate to print out documents double spaced? If not,
> I preview the documents in firefox on OS X. Is there any way to
> get firefox to print double spaced?
In addition to tweaking/hacking the built-in print.css file, you
should also consider installing Fletcher Penney's MultiMarkdown set-
up. It comes in two parts: (1) a TextMade bundle and (2) a
MultiMarkdown folder you place in ~/Library/Application Support.
Why? Because Multi-Markdown actually lets you include meta-data at
the top of a document. One item you can include looks like this:
CSS: http://path.to.styles/sheet.css
You can then "style" a particular document any number of ways. I have
not found a way for this to work fully using TextMate's built-in
Preview browser, however. (HELP coding gurus!) Fonts work. As do line
spacing, which would get you what you want, but not margins and page
numbering.
Of course, to be fair, I haven't found a browser yet that respects
page numbering as specified in CSS when I have outputted using
MultiMarkdown. (If I am doing something wrong not to get this, please
someone feel free to set me straight.)
So far as I can tell, truly print-ready formatting is only available
through LaTeX or through using something like Prince. (Or by being
XSLT competent.) I really can't work up the desire to immerse myself
in LaTeX when Markdown works so well for me. Prince is too expensive.
And I am definitely incompetent when it comes to XML/XSL/great googly
moogly.
Given my ignorance, setting up MultiMarkdown can't be that hard.
Now, where's a piece of wood so I can knock on it.
john
Hi,
How can you make it so when you press a '(' when editing source-code '( )'
is inserted instead of '()', that is, there are two spaces between the
brackets and the cursor is in-between those two spaces? It makes code much
easier to read.
Thanks!
P.S. Sorry if this message shows up as a duplicate.
--
View this message in context: http://www.nabble.com/Auto-Paired-with-Spaces-tf4295400.html#a12226736
Sent from the textmate users mailing list archive at Nabble.com.
This is barely a bug, but still seemed worth a quick mention. I've
got a project file in my /opt/ directory, which I'm using for fooling
around with my local apache installation. I do not have write
permission in /opt/, because I'm not logged in as admin (a habit from
the early days of great bash disasters). When I go to 'create a file'
in the project drawer and choose a location within /opt/ to create
it, clicking 'ok' fails silently – no error message or request to
authorize. In other circumstances I've seen TextMate ask for
authorization as admin, and it would be nice if it did the same here.
Like I said, hardly a crucial issue, there are a million ways around
it, but it seems like it ought to work.
I'm using build 1414, if that makes any difference.
Yrs,
Eric