Hi all,
I'd like to add support for highlighting the syntax of BBCode, but I'm
not really sure where to start. The main feature I'm looking for at
the moment is to turn on PHP syntax highlighting when you are inside a
[php] code [/php] section.
Where should I start looking for files to edit?
Thanks,
Douglas
I have the bundle packages checked out to /Library/Application
Support/TextMate/Bundles and I have a Rails.tmbundle in there, but
there is no option for Rails in the Automation Menu. Shouldn't there be?
Hi,
I'm really new to TextMate, having recently converted to a bit of Ruby
development on the Mac. I'm interested in writing a bundle or some
commands to help me use a tool called Hackystat. You can check out a
few things about it here:
http://hackystat.ics.hawaii.edu/hackystat/docbook/ch05.html
Basically, it's a metrics collection server. It lets you install
small sensors to collect software metrics, like how long you worked on
a particular file. Since it's automatic it stays out of your way,
it's consistent, and it's reliable. Each user controls their own
metrics data.
I want to write a sensor to collect these metrics from TextMate. The
basics would be: 1) log when a new file is opened, 2) log when a file
is closed, and 3) every so often (30 seconds) log which file is in the
active window. Pretty simple.
I'd like to start a small command-line program from a TM command, but
I'd like to keep it open until TM is closed and send info to it
periodically throughout the TM session.
I've seen several items about launching command-line programs from TM,
but can I keep one open in the background? Does TM block until the
script finishes or can my Ruby script start another process and then
return and get back to that process later?
Can I intercept the File | Open actions and then record my metrics? I
haven't seen how to do this in other posts. There's a growing list of
tools that support Hackystat, including Emacs, Vim, Eclipse, and
VisualStudio. I'd love to add TextMate to that list.
http://hackystat.ics.hawaii.edu/hackystat/docbook/apa.html
Plese let me know if any of this is possible and where I can dig up
some documentation on it.
Thanks!
Tim
I'm having some trouble with the keybinding. It seems that in the
latest stable release (1.1b15) the keycombination ^u is hardcoded to
make current word uppercase. How can I change this? (it doesn't seem to
be in the keybinding file).
Regards,
Johan Kåhrström
I have made a colorpicker.. you can find your desired color
with max 5 clicks.
How to set it up in your TM.
Step #1
Save the attached 'colorpicker.xhtml' in your homedir.
Step #2
Menu -> Automation -> Run Command -> Edit Commands...
Step #3
In the left panel, select XHTML
Step #4
Below the left panel.. click the leftmost + then New Command
name the command 'Neoneye's Colorpicker'
Step #5
In the rightpanel.. set the following options:
Save: Nothing
Input: Nothing
Output: Show as HTML
Activation: Key Equivalent F13
Scope: source
Step #6
In the rightpanel.. insert the following line:
cat "/Users/simonstrandgaard/colorpicker.xhtml"
(or whatever absolute path you have)
Step #7
close the Bundle Editor.
hit F13
good luck
--
Simon Strandgaard
I'd just started using the Subversion bundle, and everything was
working great once I defined $TM_SVN except for the Log command,
which would complain that it couldn't find the svn binary.
Turns out that the problem is within the format_log.rb program; the
line defining $svn_url read as follows:
$svn_url = `svn info #{ENV['PWD'].quote_filename_for_shell}|grep URL|
cut -b6-`.chop
changing it to:
$svn_url = `#{ENV['TM_SVN']} info #{ENV
['PWD'].quote_filename_for_shell}|grep URL|cut -b6-`.chop
corrects the problem.
Not sure if this is documented yet, but I've been having problems
with files that are open in TM, and at the same time I edit their
name through the Finder. It seems that TM still works with the old
filename, and if I save it will save (a copy of) the file with the
old filename.
If the file is inside a folder and it is open in TM, and I rename the
folder, then TM asks me for my password (!!!) when I try to save the
file.
No particular error messages in the console.
Anyone else can reproduce this?
Haris
OK, considering the number of RoR users using TM and on this list, I
am throwing this whole thing out to the community to help and assist
with.
Over the past few weeks I've been working on the TM documentation
site (90% done), and has hacked a version of Hieraki to handle it.
I've done a variety of changes even though I'm a RoR newbie, but now
I'm a bit fed up with my limitations, and the time it takes for me -
as a newbie - to do the stuff. It's a good learning ground, but I'm
also completely out of time for doing this stuff, so I am hoping that
others are willing to help out as well.
Outstanding issues & problems:
1. Routing & URLs issues
This is 90% done, and the documentation now handles human readable
URL's like these:
a. URL: site.com/chaptertitle/
b. URL: site.com/chaptertitle/pagetitle/
c. URL: site.com/chaptertitle/subchaptertitle/
d. URL: site.com/chaptertitle/subchaptertitle/pagetitle/
Translated into TM doc's speek:
if we have a chapter called "Appendices" and a subchapter called
"RegExp" and then a page called "Overview" then the url becomes
site.com/appendices/regexp/overview/
The outstanding issues here are:
-- not all links are working fully/correctly
-- there's too many hacks in the code,
-- too much repeated code
-- may have issues in it that I've not thought off
2. Support for Markdown within Hieraki.
Allan prefers to work with Markdown code, and Hieraki does only
support Textile at the moment. I and many others (?) prefer Textile
so ideally the system should cater to both.
3. User comments System
Having the ability for user's to easily comment on existing
documentation is in my mind fundamental to good documentation, and
that's why I'm hoping for this feature to be added as soon as possible.
The following two points are more important really and are stuff that
I can't possibly do, so they really do need someone else to help out
with.
4. Code Checking
As a newbie, I'm sure to have done some bad stuff, so it needs
someone more knowledgeable to look through the code and confirming
it's solid & efficient.
5. Installation on Allan's TextDrive a/c and setting up issues.
You can see a basic working version - minus some of the latest
changes - on this URL: [ www.imediatec.co.uk/tmdocs/ ]
I have it all in a SVN a/c on TextDrive, so I can easily open it up
for you to work on and commit your changes to.
So please take some time to help out !!
Worst come worst, I'd be grateful IF I could just have a few people
to ask for help from as and when I need it. Yes, I'm on the RoR IRC
and ML, and although I've been helped there, it's not always
convenient and fast.
OK, I'm sure some of you will say "why a hacked version of Hieraki ?
Why not ....?" and so on. Hieraki did the vast majority of what was
needed, but had some limitations, like no single page display (done),
no search (done) and it was easy to make it look and work like the
new design style of the Macromates site (due to be public later on
this year).
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
Is there any timeline for Subversion integration in Textmate? I'm
sure this has been discussed before, but I couldn't find any solid
information.
Thanks,
Bryce
In order for the system caret to move with pageup/down, I use this in
my Keybindings file
"\UF72C" = "pageUp:"; /
* Page Up */
"\UF72D" = "pageDown:"; /
* Page Down */
This works all and well, but is it possible to get smooth scrolling
with it to? If i remove these lines, I get smooth scrolling but the
caret won't move (actually, textpad gives smooth scrolling).
Also, I'd like tab to indent/outdent lines of selected code, but
"\U0009" = "indent:"; /
* Tab */
seems to do nothing (actually, it does do something, it completely
disables tab in textpad).
as always, thankful for assintance
Andreas
This was my first stab at editing a language
definition. I tried to add "COPY" support as well,
but couldn't get it to work for whatever reason. This
version supports most keywords in the spec. I'll try
and add better stored procedure/function support as
well as get copy working and respam.
'njoy,
Mark
{ scopeName = "source.sql";
fileTypes = ( "sql", "ddl", "dml" );
foldingStartMarker = "\\s*\\(\\s*$";
foldingStopMarker = "^\\s*\\)";
patterns = (
{ name = "declaration.create.sql";
match =
"(?i:^\\s*(create)\\s+(aggregate|conversion|database|domain|function|group|(unique\\s+)?index|language|operator|operator
class|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\s+)(\\w+)";
captures =
{ 1 = { name = "keyword.function.create.sql"; };
2 = { name = "keyword.other.sql"; };
4 = { name = "entity.name.function.sql"; };
};
},
{ name = "keyword.other.DDL.create.II.sql";
match = "(?i:\\s+(on\\s+|(not\\s+)?null)\\b)";
},
{ name = "declaration.drop.sql";
match =
"(?i:^\\s*(drop)\\s+(aggregate|conversion|database|domain|function|group|index|language|operator|operator
class|rule|schema|sequence|table|tablespace|trigger|type|user|view))";
captures =
{ 1 = { name = "support.function.create.sql"; };
2 = { name = "keyword.other.sql"; };
};
},
{ name = "declaration.drop.sql";
match =
"(?i:\\s*(drop)\\s+(table)\\s+(\\w+)(\\s+cascade)?\\b)";
captures =
{ 1 = { name = "support.function.create.sql"; };
2 = { name = "keyword.other.table.sql"; };
3 = { name = "entity.name.function.sql"; };
4 = { name = "keyword.other.cascade.sql"; };
};
},
{ name = "declaration.alter.sql";
match =
"(?i:^\\s*(alter)\\s+(aggregate|conversion|database|domain|function|group|index|language|operator|operator
class|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\s+)";
captures =
{ 1 = { name = "support.function.create.sql"; };
2 = { name = "keyword.other.table.sql"; };
};
},
{ name = "keyword.other.DML.sql";
match =
"(?i:^\\s*([\\(]{0,}select(\\s+distinct)?|insert\\s+into|update|delete|from|where|group\\sby|and|union(\\s+all)?|having|order\\sby)\\b)";
},
{ name = "keyword.other.DML.II.sql";
match = "(?i:\\s+values\\s+)";
},
{ name = "keyword.other.sql.LUW.sql";
match =
"(?i:(begin(\\s+work)?|commit(\\s+work)?|rollback(\\s+work)?))";
},
{ name = "keyword.other.authorization.sql";
match =
"(?i:(grant(\\swith\\sgrant\\soption)?|revoke))";
},
{ name = "storage.type.sql";
match =
"(?i:^\\s*([A-Za-z0-9'_])+\\s+(bigint|bigserial|bit|bit\\svarying\\(\\d+\\)|boolean|box|bytea|character\\s(varying)?\\(\\d+\\)|char\\(\\d+\\)|var\\schar\\(\\d+\\)|cidr|circle|date|double\\sprecision|inet|int|integer|interval\\(\\d+\\)|line|lseg|macaddr|money|numeric(\\(\\d+,\\d+\\))?|oid|path|point|polygon|real|smallint|serial|text|times(\\(\\d+\\))(\\swithoutstimeszone)?|timestamp(s(\\(\\d+\\))(\\swithoutstimeszone)?)?|varchar(\\(\\d+\\))?)\\s*)";
},
{ name = "storage.modifier.sql";
match =
"(?i:\\b(primary\\s+key|references|on\\sdelete(\\s+cascade)?|check)\\b)";
},
{ name = "keyword.other.data-integrity.sql";
match = "(?i:\\bin\\b)";
},
{ name = "string.quoted.single.sql";
begin = "'";
end = "'";
swallow = "\\\\.";
},
{ name = "keyword.other.object-comments.sql";
match =
"(?i:^\\s*(comment\\s+on\\s+(table|column|aggregate|constraint|database|domain|function|index|operator|rule|schema|sequence|trigger|type|view))\\s+.*?\\s+(is)\\s+)";
},
{ name = "comment.line.double-dash.sql";
match = "--.*$";
},
{ name = "string.quoted.double.sql";
begin = "\"";
end = "\"";
patterns = (
{ name = "string.interpolation.sql";
match = "#\\{([^\\}]*)\\}";
}
);
},
{ name = "string.quoted.double.sql";
begin = "%\\{";
end = "\\}";
patterns = (
{ name = "string.interpolation.sql";
match = "#\\{([^\\}]*)\\}";
}
);
},
{ name = "string.regexp.sql";
begin = "/(?=\\S.*/)";
end = "/";
patterns = (
{ name = "string.interpolation.sql";
match = "#\\{([^\\}]*)\\}";
},
{ name = "string.escaped-slash.sql";
match = "\\\\/";
},
);
},
{ name = "string.regexp.modr.sql";
begin = "%r\\{";
end = "\\}";
patterns = (
{ name = "string.interpolation.sql";
match = "#\\{([^\\}]*)\\}";
},
{ name = "constant.character.escaped.slash.sql";
match = "\\\\/";
},
);
},
);
increaseIndentPattern =
"^\\s*(create|grant|insert|delete|update)\\s*";
}
Is it possible to influence the font size in the HTML output window?
Specifically, in the "LaTeX and view" script it seems huge even on my
PB 12" screen.
Berndt
Not sure when this happened. But Justin F's early bundle work which
expands that which is before the cursor on a ctrl+space ('div'
becomes <div>|</div>) stopped working for me. I can't live with out
these.
I did a checkout of the bundles after upgrading to b15. I did delete
some (maybe his). Do you know which bundles these (macros/commands?)
live in and how I can fix it?
-tim
TextMate alongside more traditional heavies like OmniOutliner,
NetNewsWire, and Delicious Library:
http://maczealots.com/articles/shareware/2005/
> TextMate by Macromates is a fabulous text editor for programmers
> and designers. TextMate offers easy ways to manage your project,
> keep it organized and automate monotonous tasks. Managing code and
> markup are made much easier by this application, too. Because most
> projects require many files, TextMate is also great because it
> helps you manage all these files. The most commonly used features
> are the dynamic file outline that allows you to arrange your files
> in an outline and keep your changes up to date, tabs that make
> jumping between files simple, a clipboard history so you will never
> forget where you are going and where you have been and the ability
> to hide what you don’t use with foldings. TextMate consistently
> gets high ratings and you can’t beat it for the money.
>
> Some of the MacZealots crew use TextMate to write drafts of
> stories, create sample code for tutorials and even as a quick
> outliner. The reason is because TextMate is so lightweight compared
> to applications like Microsoft Word and Xcode. With less system
> overhead, we can use our dilapidated iBooks to work on the road.
Am I the only one who's noticed a rather substantial system slowdown
with b14 and 15 running?
SAUL ROSENBAUM
VISUAL CHUTZPAH
Strengthening Brands Through
Illustrated Images And Interactive Design
visit us on the web:
http://www.visualchutzpah.comhttp://www.saulrosenbaum.com
or give us a call:
p: 215.702.1147
f: 215.689.3465
Allan,
I'd love to, unfortunately she upgraded to Tiger yesterday whilst my back
was turned, all has now returned to normal! If I can track down another
machine that hasn't been upgraded Ill try to verify the problem and run the
tests you suggested.
Cheers,
Chris
On 28/7/05 13:00, "textmate-request(a)lists.macromates.com"
<textmate-request(a)lists.macromates.com> wrote:
> Okay, can I persuade you to do some testing on her setup?
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Just to inform everybody that the a new version of PHPCodeCompletion
with support for TM 1.1b15 can be downloaded from here: [ http://
www.imediatec.co.uk/tm/phpcc/ ]
IF you are not using TM 1.1b15, then you can still use download and
use the b11 - b14 version.
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
On Jul 25, 2005, at 10:37 PM, Andreas Wahlin wrote:
>> I doubt you'll convince many here that the Finder is a good project
>> manager ;)
>>
>
> ehm, *coughs a bit* no I suppose not :)
> But if you would only use it SPATIALLY, then ... *shuts up*
I use to believe similarly. I strongly encourage you to spend a few
minutes playing with TextMate's projects. Just don't be too
surprised if they win you over. They sure sold me.
Apple-T is probably the best feature of projects. What to open
my_class_test.rb? Apple-T, mct, and return. You have to see it to
believe it.
Seriously, we're probably talking about 10 minutes of your time and
then at least you'll know what you're missing, if nothing else...
James Edward Gray II
On Jul 26, 2005, at 7:01 AM, Patrice Neff wrote:
>>> UTF-8 sucks for Japanese and Chinese texts mainly due to space
>>> reasons. If anything makes sense, then it is UTF-16, which
>>> Textmate also supports.
>>>
>>
>> Could you explain what you mean by "space reasons"?
>>
>
> Due to the way UTF-8 works, it used 1 byte for US-ASCII characters,
> but up to four bytes depending on the Unicode number. Many alphabets
> can be encoded with two bytes (especially the European ones, but also
> Hebrew or Arabic). Chinese and Japanese characters will require three
> or four bytes.
This size issue is largely a myth.
Remember, we are discussing "pictograph" languages. In English, the
word "forest" requires six characters. In Kanji (Chinese/Japanese
pictographs), it requires one. Even if we need four bytes to encode
that one character, it will still be smaller than the resulting
English encoding.
There are some encodings that squeeze Kanji into a smaller space,
it's true, but to say that the files balloon in size without this is
not really accurate, in comparison with other languages.
James Edward Gray II
On Jul 25, 2005, at 10:37 PM, Patrice Neff wrote:
> Apart from that, it seems that Unicode is not actually able to handle
> 100% of Chinese (and maybe also Japanese) script. But I'm not a
> Unicode expert.
Unicode does not include all of the Kanji, a shared set of
pictographs for Chinese and Japanese. However, the Japanese (the one
I know), at least, can just drop into their Kana (Hiragana and
Katakana) syllabary to "spell out" any word they can't represent with
Kanji. I assume the Chinese have a similar option, though I'm not
familiar with that language. However, since the average Japanese
person knows a few thousand Kanji and Unicode includes way over that,
I seriously doubt this is a common problem.
James Edward Gray II
On Jul 25, 2005, at 10:37 PM, Sean Schertell wrote:
> Unfortunately, UTF-8 doesn't work for Japanese in some cases. For
> example Mac IE (still used by all those poor souls still stuck on OS
> 9), shows lots of wacky characters.
Your example speaks of a no-longer supported browser for an abandoned
(for years now) operating system. I'm all for supporting a large
audience, but I'm going to be blown away if we're talking about %1 of
typical traffic here. That seems like a minimal risk hit to take, if
you ask me.
> then use iConv everytime you upload -- not exactly a smooth
> workflow :-(
It can be. Remember, TextMate is all about automation. Build a
command and turn conversion and upload into a single keystroke.
James Edward Gray II
hi,
i've been searching the main site, the wiki and the list - but can't
seem to find a bundle that does reasonable xsl syntax highlighting.
did i miss something, is there something worked on, the html/xml
bundles from b15 are just to simple for doing real xsl files. this is
the only thing that holds me back from buying a licence...
thanks for your answers
josef