If you have ever wondered about using keyboard shortcuts in an HTML
Output window see my post http://concise-software.blogspot.com/2008/04/textmate.html
which includes steps to create a Command in the Bundle Editor which
brings up an HTML Output window for testing Keyboard Shortcuts.
If you use Safari, there is also the Safari Tidy plugin that will validate
on the fly:
http://www.zappatic.net/safaritidy/
On Wed, Apr 9, 2008 at 1:58 PM, Tobias Jung <newsgr(a)tobiasjung.net> wrote:
> At 10:32 Uhr -0700 09.04.2008, Steven Rowat wrote:
>
> > Bob wrote:
> >
> > I'm searching for a way to run a validate Web pages created in
> > > TextMate.
> > >
> > > The site has headers and footers via php includes for each page.
> > >
> >
> > I'm in the same situation, and my low-tech solution (perhaps there
> > are more elegant ones) is to run the page in a browser, hit 'show
> > source' for the browser, copy the code, paste into a new untitled
> > document in TextMate, and then use the TM bundled validation. It's
> > a few steps but they're quick with key commands.
> >
>
> Well, if you're using the browser anyway, you could use Firefox plus the
> WebDeveloper Toolbar (which can send the current doc to the W3C validator
> even if it's loaded from your local hard disk) or iCab which has a built-in
> validator (though it's not always as accurate as the one from the W3C).
>
> Of course, a solution which can be directly called from TextMate would be
> nice, but I don't know any...
>
> Kind regards,
> Tobias Jung
>
>
> ______________________________________________________________________
> 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
>
I just put TmCodeBrowser 1.10 out. It uses an updated ctags (amongst
others better php support) and now remembers the sort setting on a per-
language base. Get it here:
http://www.cocoabits.com/TmCodeBrowser/
Gerd
I am often without internet, then I saved all the programming's
doc I need on my local drive.
I'd like to use that documentation instead of looking
for on the internet every time
I ask textmate some docs.
But in every bundle I didn't find it so easy (not just a global variable).
And another thing, I frequently update via svn my bundles,
but what happen if I modify one of them
(maybe changing one variable)??
Reading on the terminal looks like they're skipped because
modified by me, is that right?
So how should I modify third party bundles?
Thanks a lot
I am new to TextMate and I was wondering if there was a way to add a
Command+Shift+Option shortcut for PHP just like there are for other
languages.
-- Bryce R
I have posted instructions and a screenshot on my blog describing how
to make an Erlang Build Dialog:
http://concise-software.blogspot.com/2008/04/textmate-erlang-build-dialog.h…
This enables a build-on-save operation for Erlang projects. When you
save it automatically brings up a list of errors and warnings with
icons and links if there are any. If there are no errors or warnings
no dialog is shown.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Since upgrading to Leopard, I've had one very annoying problem. I
cannot get textmate to open a file when it has no extension and has
not been explicitly set to be opened by textmate yet. I've read the
blog on Leopard issues, and while this is similar to the quickview
issue, I think this is a new perspective.
In particular, I work with a lot of svn or svk checkouts, set up as a
project in the drawer. One of the filenames of a most important part
of the project is amavisd-maia. no extension, as is common for a lot
of unix programs. It's actually a perl file, but textmate (OSX
probably, but textmate follows the suggestion) insists on calling it
an executable and running it. Worse, it does so silently with no user
feedback at all... it took me forever to find out that it was
executing it without a terminal.
The only way to make it work is to open the info view in finder, and
change the program to open it with, but it only works on the one
file. If I wipe the project and check out a new copy, it does the
wrong thing again. As near as I can tell, there is no way to tell OSX
how to treat no-extension files.
I understand you want textmate to do the right thing when opening an
image or something, but why can't there be a setting to force
something to open in the editor? An option in the right click menu,
"open in editor"? A modifier when clicking?
David Morton
Maia Mailguard http://www.maiamailguard.com
mortonda(a)dgrmm.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iD8DBQFH8uT+Uy30ODPkzl0RAvvMAJsEX9nWvAHEoIEUQBp9UDANGWlLtgCfcE2d
6EQOhkTF3AZlTGeFUWNJ3Gk=
=BJsD
-----END PGP SIGNATURE-----
Translating is very annoying, so I think that maybe textmate could help
me to make it easier.
Is there any bundle for that?
I think a good way could be:
1. divide the screen in two parts, in the uppper put the text you want
to translate, in the lower the translation
2. then during writing the upper text should "follow" the translation
(this is optional and don't know how it could follow).
The problem is that I don't see a frame support...
Thanks
Hi
Sorry for my bad english, I hope that you understand the question ... :)
I would like to know if it is possible to show "html syntax error"
with colors.
Example : <p> bla bla bla bla bla <p> bla bla bla </p>
I would like the part <p> bla bla bla bla bla <p> bla bla bla </p>
in a different color
Perhaps it's possible to select with highlight color the text between
<p> and the
corresponding end tag </p>
idem for all the tags div /div etc ...
Best Regards
Alain Matthes
I am unable to use some of the LaTex bundle. The cmd-{, cmd-}, and cmd-
\ combinations for some of the "...based on current word" functions. I
get errors like the following:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/config_helper.rb:13:in /bin/bash: -c: line
3: unexpected EOF while looking for matching `''
/bin/bash: -c: line 5: syntax error: unexpected end of fileload_file'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/config_helper.rb:12:in /bin/bash: -c: line
0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileload_file'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/config_helper.rb:19:in /bin/bash: -c: line
0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileload'
from /tmp/temp_textmate.wYTKvF:3
Any ideas?
Hi,
I tried vain various tricks to be able to show my files TeX in
QuickLook but for the moment unsuccessfully.
Have you an infallible method?
Best Regards
Alain Matthes
Hi all,
I have just committed 2 changes to the support dir.
I have introduced tm_interactive_input.dylib which allows any process
using it to request input from the user in the normal way (e.g. gets
in Ruby or read in Bash) and have TM present a dialog to the user
allowing them to enter input. You can read a little bit more about
this dylib @ http://macromates.com/svn/Bundles/trunk/Tools/tm_interactive_input/usage.md
.
I have also changed scriptmate to use this new feature, so any
scriptmate implementation for a particular language automatically
inherits this new functionality.
If you maintain a bundle and have a command that could benefit from
this new feature, then checkout the usage doc link above or take a
gander at what scriptmate does to set this up. I am on the IRC channel
fairly frequently so you can usually catch me there if you are having
problems using it.
Cheers,
LD.
I'm working on my thesis and it says
There was a problem reading the preferences file,
continuing with defaults.
I didn't touch the prefs, or at least I touched long
time ago, what could be the problem?
Anyway to fix it?
(I tried to set it up again in latex-preferences but
doesn't work..)
Having problems with code-completion.
Basically, whenever I hit alt-escape for triggering a completion I get this:
sh: : command not found
/tmp/temp_textmate.I8XxsT:164:in /bin/bash: -c: line 0: unexpected EOF
while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileshow_dialog'
from /tmp/temp_textmate.I8XxsT:118:in /bin/bash: -c: line 0:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileprint'
from /tmp/temp_textmate.I8XxsT:488
I am not sure, but I feel like I have seen errors like these pop up in
other bundles as well.
Any clues?
Thank you.
I just joined this list and seem to be having trouble posting, but
I'll give it another try.
I was wondering what the prevailing wisdom is regarding pattern naming
conventions for assembly languages. I'm working on a bundle for an
obscure chip (the long-discontinued Motorola DSP96002 which we still
use in a variety instruments on account of it being one of the few
DSPs which supports extended precision floats). So far, I've got
patterns like "assembly.opcode", "assembly.directive", and
"assembly.directive.macro", but I'm not sure this is the way to go.
Should these all be under "keyword", for example?
-Ted
Hi,
I can remeber that with the new OS X Leopard a new version of TM was
planned. Is that still in development and is there a date when it will
be released?
Thanks
Christian
Having problems with code-completion in Objective-C.
Basically, whenever I hit alt-escape for triggering a completion I get this:
sh: : command not found
/tmp/temp_textmate.I8XxsT:164:in /bin/bash: -c: line 0: unexpected EOF
while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileshow_dialog'
from /tmp/temp_textmate.I8XxsT:118:in /bin/bash: -c: line 0:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileprint'
from /tmp/temp_textmate.I8XxsT:488
I am not sure, but I feel like I have seen errors like these pop up in
other bundles as well.
Any clues?
Thank you.
Howdy,
I was wondering if anybody else was having issues with they keyboard
shortcut for going to/from the main window to/from the project drawer?
Whenever I hit Ctrl+Tab together, it spits out a cryptic tmp file
message, like:
/tmp/temp_textmate.T5GF9m:4:in
Any ideas? I recall it worked at one point.
Cheers,
Matt
Has anyone done any work to update the objective C bundle to work for
iphone software development, namely the correct syntax highlighting of
NS* and UI* classes the SDK has introduced or looking up in the
documentation?
Thanks,
Dave.
I am new to this list and apologize if this topic has already been
covered.
I am trying to design a bundle for an obscure DSP assembly language,
and I have reached the point where I have got this sprawling regular
expression that can identify every instruction recognized by the
processor. It actually works quite well, and it's wonderful to see
the syntax coloring kick in.
So my question is about how best to identify assembly language
components in terms of themes. Are there any precedents in this
regard? For the time being, I am using two main categories:
assembly.opcode
assembly.directive
I have also broken these down into the likes of
assembly.directive.macro and assembly.opcode.modifier. The latter may
be a peculiarity of the language I am using, which has constructs like
this:
tst d0
add d1,d2 ifeq
This tells the processor to add data register d1 to d2, but only if
the value of d0 tested zero. The "ifeq", then, is what I am referring
to as an opcode modifier, for want of a better term.
Anyway, I'm not sure if I am going about this right, or if it all
needs to go under keyword or something. Any suggestions?
-Ted
Hi everyone,
I've recently started coding in Objective-C and noticed that none of
the comments in my ".m" source files are syntax colored. CNTL-SHIFT-P
shows the comments' scope as:
source.objc
meta.implementation.objc
meta.scope.implementation.objc
Essentially, the same scope as the rest of the code. For comments, I
would have expected to also see something like:
comment-line-double-slash.objc
And also:
comment-block.objc
Any ideas how I can remedy this? BTW, I'm using TextMate v1.5.7
(build 1455). Have I somehow unwittingly screwed up my Objective-C TM
bundle?
Thanks,
--Cliff