On Nov 15, 2008, at 1:00 PM, running.cz(a)gmail.com wrote:
> Date: Fri, 14 Nov 2008 16:35:13 -0800 (PST)
> From: kaja <running.cz(a)gmail.com>
> Subject: [TxMt] PHP MySQL highlighting
> To: textmate(a)lists.macromates.com
> Message-ID: <20510850.post(a)talk.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> another bug/issue I have with textmate - mysql highlighing in php
> code works
> only sort of. If I write:
>
> "SELECT * FROM `table` WHERE `column` = 'value';";
>
> it's fine - FROM and WHERE are blue, the rest is green.. but if I
> write
> something like
>
> "SELECT * FROM `".$table."` WHERE `".$column."` = '".$value."';";
>
> the MySQL highlighting stops working at FROM.
Hi Kaja,
the keyword matching can't guess that you concatenate strings. You are
already using double quotes for the string, so why not embed your
variables anyway?
"SELECT * FROM `{$table}` WHERE `{$column}` = '{$value}';";
This would highlight correctly since it is a continuous string.
Regards, Torsten
--
Torsten Walter
__________________________________________________
3d-M | Professional Solutions for Online and Offline Media
Zum Piepenkerl 2 | 49090 Osnabrück | Germany
__________________________________________________
website: http://legacy.3d-m.de
blog: http://playground.magicrising.de/
__________________________________________________
phone: +49 541 69 16 645
mobile: +49 179 12 13 561
__________________________________________________
email: tw(a)3d-m.de
I've been using TextMate a while and have installed the Actionscript 3 bundle
as per
http://flashalisious.com/2007/07/30/installing-as3-and-flex-bundle-for-text….
I did this on my last computer, and got a bunch of nifty templates (Sprite,
etc), that had large areas of the .as file blocked out (EVENT HANDLERS,
PRIVATE METHODS, etc).
I got a new machine here at work and installed the bundle as per above, and
although I now have the templates again, they don't have all the content
they used to; and in fact come up with a sort of cryptic package
designation, i.e.
package .var.folders.lB.lBw3509ZExidE+zqzMfB2oHT-Fk.-Tmp- {
I'm not at all an expert at TextMate, but like it a lot (we're registered
users here). Can anyone suggest a fix to get things back to how they once
were? Thanks very much!
--
View this message in context: http://www.nabble.com/How-to-install-Actionscript-3-TEMPLATE-correctly--tp2…
Sent from the textmate users mailing list archive at Nabble.com.
another bug/issue I have with textmate - mysql highlighing in php code works
only sort of. If I write:
"SELECT * FROM `table` WHERE `column` = 'value';";
it's fine - FROM and WHERE are blue, the rest is green.. but if I write
something like
"SELECT * FROM `".$table."` WHERE `".$column."` = '".$value."';";
the MySQL highlighting stops working at FROM.
--
View this message in context: http://www.nabble.com/PHP-MySQL-highlighting-tp20510850p20510850.html
Sent from the textmate users mailing list archive at Nabble.com.
Hello,
I checked out the Bundles repository to User/Library/Application
Support/TextMate/Bundles after I restarted TM and tried to typset my
latex document I get the following error message:
/tmp/temp_textmate.Y4UcNG:3:in `require': no such file to load -- /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
process (LoadError) from /tmp/temp_textmate.Y4UcNG:3
I already tried Logout/Login and Restart without any changes.
How could I get TM to work again?
Thanks in advance,
Christian
I've been using this to keep my bundles up to date:
cd /Library/Application\ Support/TextMate
svn up
and it's been working fine. However as of the past few days it seems to not
be getting any updates. According to the bundle update RSS feed (feed://
macromates.com/svnlog/bundles.rss), it's at r10806, but when I do the svn
up, it tell me I'm up to date at: r10740
Had the bundle update process changed?
Thanks,
jt
Dear All,
I am very new with MacOSX and Textmate(1.5.7). I write with TextMate simple
HelloWorld in C.
#include <stdio.h>
int main()
{
prinft("hello world");
return 0;
}
When I run the code. I always get this error.
xcodebuild: Error: the directory /Users/koko/Documents/MNP does not contain
an Xcode project.
what is the problem? I dont wanna use Xcode editor for C learning.
How can I configure the Xcode complier for TextMate editor.?
many thanks in advance,
koko
Howdy,
Our project is a mix of erb and haml templates, but the majority are erb.
Prior to installing the haml plugin in the Rails project and the Textmate
bundle, the "Go To View" shortcut in TextMate would neatly take me to the
.html.erb view from a controller, but now wants to go to the .html.haml
file, which doesn't exist for most views. Is there a way to set the default
back to .erb ? Uninstalling the TextMate HAML bundle doesn't seem to do it.
Cheers,
Pete
--
View this message in context: http://www.nabble.com/HAML-templates-now-the-default-for-%22Go-To-View%22-s…
Sent from the textmate users mailing list archive at Nabble.com.
First a question, is there someone using textmate to work on unix servers??
I thought that with sshfs and the power of bundles I could do something
really nice, much better than using vim (which is a great software anyway)
in ssh...
I have doubts on how to implement the "helpers", because I don't know enough
yet of TM.
1. If I create a language for every software (a grammar for monitrc, a
grammar for apache etc...) I will get too many languages, is there a way to
create a group of languages??
I would like to create mainly many snippets, help functions that returns
useful web-pages and maybe nice scripts to automate things..
2. Good ways to send command to external servers??
Maybe just open a shell and ssh <host> <cmd>?
3. There are any kind of problems working with TM+sshfs (if you know)?
I have also created a good (I think) way to document servers, with latex and
custom scripts, if anyone interested in TM + sysadmin work is welcome to
write me, I could publish everything somewhere..
Any advice is welcome, you know better than me the potentiality of this
great software!
--
View this message in context: http://www.nabble.com/TextMate-for-sysadmins-tp20327584p20327584.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I just installed Skim 1.2 (a pdf viewer). They appear to have moved
the `displayline' command from <skim dir>/Contents/Resources/
displayline to <skim dir>/Contents/SharedSupport/displayline which
breaks the pdfsync integration with the TextMate LaTeX bundle.
I updated the path in <textmate dir>/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/texMate.py, line 111 which seems to have
corrected the problem:
if viewer == 'Skim' and vp:
syncPath = vp + '/Contents/SharedSupport/displayline ' +
os.getenv('TM_LINE_NUMBER') + ' ' + pdfFile + ' ' +
shell_quote(os.getenv('TM_FILEPATH'))
I noticed that displayline now supports a -r flag to refresh the pdf
so the refresh and pdfsync could be done in one command. I wasn't
feeling confident enough in my python skills to try this.
-Mark