Hi,
In html preview mode, how do you force the preview window to update elements
called by the document? (images .css files etc.)
In Safari, I would use cmd-R to refresh the window.
It would be nice if Textmate asked webkit to do a deep flush when you
clicked the refresh icon with a modifier key down.
Tim
Textmate hint of the day: cntrl-S gives you an incremental search (like / in
Firefox, or Safari if you install acid-search)
Hi,
After a lot of reading the documentation on textmate language
bundles, grammar and scopes and regular expressions, I (just|finally)
began making my own bundle for the cheetah templating language. My
first post on this list is the following question:
How can I name the scope from when I include an other language in my
language bundle?
To explain this a bit:
My quest comes forth out of an esthetic desire to color the
background of embedded html in the cheetah template, just like the
"Embedded source" scope 'text source, string.unquoted' can colorize
the embedded javascript or css in a html document.
In my cheetah language grammar I have a pattern:
{ name = 'source.embedded.html';
include = 'text.html.basic';
},
But in the document, the scope (ctrl shft P) just says
"source.cheetah", or "source.cheetah meta.tag.structure.any.html"
when my caret is within a html tag. I don't see anything of that name
'source.embedded.html' reflected in the scope.
Is it possible to give an embedded (or included) language an extra
scope layer name, so I can use that in a theme?
I tried 'source.cheetah source.embedded.html' but that didn't do
anything. For now I use 'source.cheetah meta', but that means I am
missing a lot of non-cheetah-html stuff, like html comments, or (in
html) embedded css or javascript.
I hope that my question is somewhat clear.
thnx
dirk
-----------------------------
Dirk van Oosterbosch
de Wittenstraat 225
1052 AT Amsterdam
the Netherlands
http://labs.ixopusada.com
-----------------------------
>
> > There is a Doxygen bundle at the svn repository.
>
> I saw it. However it does not do no syntax highlight.
Enrico, if you want to look at adding or updating the doxgen bundle let me
know. I added it as a starting point, but have no feeling of ownership if
you want to take it over or extend it together let me know.
I use it very lightly and would love to see it get better.
Sam D
Uh-oh!
As recommended, I've svn co'ed the bundles into my ~/Library TM
directory in anticipation of using svn to merge updates into my custom
stuff (bundle items).
However, I already *have* tons of custom stuff, so I tried merging my
old stuff into the svn working directory using rsync -au. I followed
this with some diff-ing to merge the language files and other conflicts.
The only stuff I didn't merge were all the UUIDs.
And as you can guess, some of my old stuff has reverted back to the
originals. Some stuff isn't showing up in the bundle editor (for
example, both files exist: "PHP if( ).plist" and "if .. (if).plist", but
the latter file is not available.
Any suggestions how to cleanly merge my old stuff into the svn co? Any
way to completely reset all UUIDs? (I've already tried deleting the
bundle Info.plist files, but the missing stuff doesn't appear...just
everything goes out of order.)
Q
Allan,
I am using "Edit in Textmate" for most of my emails now, but I am
finding out that there are some caveats that will kill your email
message; namely switching between windows and/or applications too
often results in your text being lost and not placed back into the
email when you close the TxtMte-Window. Right now I am placing the
email message into the clipboard as a backup, but clearly there is
something odd here ;)
Dan
#Wishlist
I would love to have a workflow like this:
* extract a listing of scopes from a bundle
* create a set of styles
* and then have a listing with styles on the left, scopes on the
right with some form of connectors between them to assogn styles OR
definitely some way to see which scopes have which styles applied
* (and possibly some way to easily change a *whole theme's colors*:
like convert all R values to G values… ;))
A thing I have noticed during my attempts to get some more specific
styling for my LaTeX stuff is that there are so many themes out now,
and so many bundles it is almost impossible to create a theme that
*really* applies to all languages. What would be very useful to try
and play with themes would be some way to assign relationships
between scope selectors for themes to substitute missing elements.
This would look like some list that a user or a bundle could provide
which says:
“if your theme does NOT know about meta.scope.obscure then please
have it handled like meta.scope.common, as these are related or at
least the style markup would indicate a similar importance.”
Possibly add some way of indicating those *placeholder* assignments
in the theme editor by creating blanks that could be filled in or so.
(This would in a way be similar to a situation where bundles do not
use their own but a limited namespace. But would also allow for a
much more sophisticated access for styling as well as for mixed
language situations or for purely aesthetic reasons [like in
Brilliance Black where you have different color “mini-themes” for
different bundles/languages]).
Am I still making sense?
Dan
PS: I do realize this will end up very low on the “wishlist” ;)
From one of today's TextMate Blog entries:
"By default, pressing ⌃H on a tag name will show the W3C
documentation for that tag, this also works for CSS selectors, PHP/
Ruby functions, Cocoa stuff, and outside of HTML, things for which
there is a manual page, etc.)"
Until today, I somehow never realized TextMate had this feature, and
I was happy to see it works for Java, too. At least, it's supposed
to. I can't get it to work. It seems that the command requires an
index.html file in the Java API docs directory, but on my Tiger
installation of Tiger (that is, Mac OS X 10.4 and Java 1.5/5.0),
there doesn't seem to be any index.html in that directory. There's an
index-files subdirectory, but no root index.html file. Is there
something wrong with my installation of Java?
Trevor
This Java program prints nothing when run using Compile & Run Single
File.
public class test
{
public static void main(String[] args)
{
System.out.println("<hello>");
}
}
Apparently the output is being squelched because it looks like
markup. Is there a way around this? Or is it just a bug?
Trevor
This seems like it should be obvious, but I can't work it out.
What do I set the Scope Selector to on a command I want to be available
everywhere? My first intuition is just to leave the Scope Selector field
blank, but it's not working.
I have several commands in the text bundle using apple-shift-option-P,
and one in the HTML bundle. While editing a HTML document when I hit
this key combo I only get the HTML command, not the others in the text bundle.
Hmmmm?
Q