Hi,
Another one for the pile...
Not sure if this has been picked up before but the following steps
demonstrate a bug in the folding logic:
1. Create a TM new document
2. Past in the following test php code:
function test() {
/* multiline
comment
*/
some stuff...
}
3. Set the syntax highlighting as PHP
4. Notice that it correctly identifies the start and end of the
function as a folding block as well as the start and end of the comment
as a nested folding block
5. Do Cmd-Alt-0 to collapse everything or click on the fold by
'function ...'
You should find the text from some stuff... onwards is not collapsed.
If you first collapse the comment (using F1 or clicking on the icon)
you can then collapse the function without problems.
I might be wrong, but I don't think this is a problem with the PHP
bundle, as it is correctly identifying folds.
Cheers,
James
I've noticed that if I create a new, blank document and then drag a
text/html file onto the doc, TM will overwrite/fill up the empty
document with the contents of the dragged file. Since my goal in
creating the new file and then dragging another one on to the doc was to
copy and paste between them, you foiled my plans!
Can you just leave blank docs in their current state when I drag a file
onto the doc?
Thanks!
Chris
--
Do the evolution. Get Firefox!
<http://spreadfirefox.com/community/?q=affiliates&id=5&t=4>
Quote of the moment: /Teeth never inflate when you inhale, cause that
would look really stupid./— Davezilla
Yep, an icon is something everyone can have an opinion about. I
don't like the default one, not just because it looks awkward to me,
but mainly because the colors are very invisible to me, and it's hard
to find in the dock. For a while I used a replacement icon from the
World of Aqua IV of the red robot from Ghost in the Shell, and I'm
currently using the 'braces' icon.
I don't think I have to love an icon, but I should be able to find it
quickly in the dock.
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Alas I'm using "/" as an arithmetical operation in a MySQL statement
and it renders the rest of the code (until a subsequent "/") as a
RegExp! I thought it was commenting out until I looked at the bundle:
{ name = "Comment"; foregroundColor = "#9933CC"; match =
"^\\s*--.*$"; },
[snip]
{ name = "Regular Expression"; begin = "/"; end = "/";
foregroundColor = "#CCCC33";
patterns = (
{ name = "Interpolated String"; match = "#\\{([^\\}]*)\\}";
foregroundColor = "#aaaaaa"; },
{ name = "Escaped slash"; match = "\\\\/"; foregroundColor =
"#CCCC33"; }
);
},
This is a shame b/c I was enjoying the SQL syntax colors... this
renders them unworkable when using the maths... Is there a way to
change the RegExp syntax to allow "/" as divisor?
thanks!
Paul
PS to Fred B -- any relation to Agnes? :)
Has anyone developped an Ada syntax/snippets/coloring bundle? A friend of
mine would be very interested...
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.6.0: Sun Oct 10 12:05:27 PDT 2004
Hi there,
Is there a translationscript for Text to HTML like in BBEdit
(Translate) and ignore < and /> ? Example: ö -> ö
That would be great.
thanks,
Detlef Hoge
Show project drawer appears to be broken. I can hide the project drawer, but
once it's hidden I can't show it again. This occurs with existing and new
projects.
Ed Wong
I'm not sure what the correct definition for this is, but here is what
I am trying to do:
I am trying to remove (delete) the empty space or move the cursor to
the beginning of the next HTML tag in an existing HTML document, that
sort of looks like the examples below:
With the cursor immediately after the first <p> tag:
By pressing Alt-Shift-del (not backspace) deletes all space up until
the text "this" in Code Example A:, but in Example B: we delete only
one line of text, and has to press it twice, in Example C: we end up
deleting all the space including the first < in <code>
With the cursor immediately after the end of the paragraph text block
('text'/'tag'):
By pressing Alt-Shift-del here, deletes as above, but also deletes the
</ of the closing tag.
I do not know if this is an issue to do with some hidden
characters/spaces/tabs in the files I am working with, or whatever, but
it is irritating.
So, is there some way that this behaviour can be changed ??? Hidden
prefs in a .plist file ?
IF not - or as an immediate alternative - how would I create a regex &
Macro that would delete all the space (including tabs, new lines,
carriage returns etc ) up until the first < tag ??
I would be very grateful if someone could point me in the right
direction here.
Example A:
<p>
this is a simple paragraph text
</p>
Example B:
<p>
this is a simple paragraph text
</p>
Example C:
<p>
<code>this</code> paragraph begins with an html tag
</p>
Kind regards,
Mats
I can't seem to find where the dictionary is specified in text mate?
I am using it for Latex and in the installation on my portable Mac
spell checking (in US English) works,
but the, as far as I can tell identical, installation on my desktop Mac
I do not get misspelled words high-lighted, but right clicking on a the
misspelled word offers me the suggested better spellings
How could I specify sometimes a different dictionary (Uk English,
French) Mail knows about the different dictionaries....??