Hi!
I'm having some problems with a table where I need to include multiline text
(large text). I would like to have the same behaviour as a standard
paragraph but text is cut when arribing to the right margin instead of
continuating in a new line.
I'm using:
\begin{tabular}{|c|c|l|}
\hline
...
Any idea?
Thanks!
xxx
xxxx
Warning: This e-mail is privileged, confidential and contains private
information. Any reading, retention, distribution or copying of this
communication by any person other than its intended recipient is prohibited.
Hi, I am completely new to programming and am trying textmate out based on
some reviews I've read. I'm learning python as my first language.
My question is this: I am writing basic small programs in python and when I
run the program to see if it works, even if it works properly it always
finishes the output with the last data that I enter into it.
For example, if I enter:
n = input("Please enter a whole number: ")
fact = 1
for factor in range(n, 1, -1):
fact = fact * factor
print "The factorial of", n, "is", fact
When I run the program (with an input of '10'):
' Please enter a whole number: The factorial of 10 is 3628800
10'
When I run the program in IDLE I don't get the extra output.
Thank you.
Hi,
I am not sure if I'm just using an old version but it seems that
there's a bug with project plus.
If I am dragging a folder from the Finder to the TextMate-icon and
TextMate is closed, TextMate will open with the "old" drawer. If I
open the folder from within TextMate (e.g. via Recent Items) or if I
drag the folder to TextMate when it's already open the Project Plus-
drawer opens.
I made a short video that shows the problem: http://www.youtube.com/watch?v=b802UokTNjg
I am using Mac OS 10.6.1, TextMate 1.5.8 (1509) and I'm not sure how
to figure out which version of Project Plus I'm using.
Niels
A while ago, while on project view, I dragged a .gif file from the project
drawer to the main textmate window, which opened the file in the text
editor. I simply closed it and move on.
Ever since, everytime I select a .gif file on the project drawer it opens
the file on textmate, when most of the times I just want to drag it to my
dock and open fireworks. I've searched everywhere and couldn't find where to
cancel this behaviour, to no avail.
Help?
--
View this message in context: http://www.nabble.com/Opening-Gif-files-tp25530149p25530149.html
Sent from the textmate users mailing list archive at Nabble.com.
Hey is there a more advanced version of the Diff for textmate (like Exam
Diff or Beyond compare), that would allow us to look at individual words or
characyter differences per line rather then just line by line?
Thanks for the reply, please see comments below:
>> 1. New Project
>>
>> [...]
>> The question: is there any way to have the paths set from my "root"
>> element?
>> For example if I drag an image that is placed into /myroot/img/ the
>> html file that gets it uses a src link like "../../img/image.gif". Is
>> it possible to have "/img/image.gif" instead?
>
> I do not quite understand. But if you drag eg an image from the
> drawer/
> Finder to an HTML document TextMate will insert the relative path seen
> from that HTML document, this ensures that the HTML doc can see the
> image file later on.
I mean that I usually prefer to set all my image paths to something
like "/img/file_name.gif" instead of TM way: "../../img/file
name.gif", they both normally work yes, but when you are using apache
mod_rewrite or when, later, you want to move the file somewhere in
other directories, by using default TM path you should address all
paths to the new location (or mod_rewrite path).
By using the "absolute relative path" like "/img/image.gif" the image
will always work even if you move the file into a directory like:
test/small_files/long/path/myhtml_file.html
or
/short_path/myhtml_file.html
>> 2. Project Drawer and new files in project
>>
>> How can I create a new file or duplicate an existing one?
>
> If you did select the file in question simply press ??S (Save As)
> to duplicate it.
That is what I usually do, but with the problem that Project Drawer is
not correctly updated: the old file disappears from PD tree.
I have to restart TM to see it again. It is always there anyway, it
seems to be only a display problem of TM project drawer.
For Exemple, if open a file called "menu.html" that is placed inside /
models/menu.html, and then I choose "Save As..." and select /test.html
as the new saving location and name, Project Drawer will show me a
file called "test.html" placed into /models and no file in the project
root.
I have to close TM and restart it to see files where they really are.
Do you confirm?
>> 3. While I editing CSS or HTML files, sometimes I need the color
>> chooser, the default keys CTRL + SHIFT + C do not open it. That keys
>> seems to be used by the default Math bundle. Is the solution to
>> manually change such keys in Math bundle? Why TM provides such
>> overlapping keys?
>
> TextMate doesn't listen on the ?^C, thus deleting that short-cut in
> the Math bundle won't work.
>
> If you're inside a CSS doc or inside a CSS scope (ie if your caret in
> inside of "<style type="text/css">?</script> of an HTML file) press
> ??C. From others ^? > CSS > Insert Color?
correct, but when I have an open file like could be "test.css" and CSS
language is associated to such file, if I am creating a rule and I hit
[ CTRL + SHIFT + C ] why it does not open color picker but Math bundle
instead?
The same happens when I am inside a .html file and the caret is placed
into tags:
<style type="text/css" media="screen">
color:
</style>
> 4. A little "bug" with file tabs
>
> In addition ^?R will select the current doc in the drawer.
>
> If you need your own way to display the name simply create a new
> tmcommand in the bundle editor:
> Input: Discard:
> Output: Show as Tooltip
> Command:
> echo "$TM_FILEPATH"
>
> and bind it to any short-cut.
that is ok, but is always a patch to the wrong (in my opinion)
behaviour of TM with not visible tabs.
In DW CS3 for example, active tab is always displayed in tabs list. In
TM you need to see tab even if you want o drag the file tab near to
another for faster select. But you can't do that at the moment.
>> And I don't understand where TM places the new file if no
>> directory is selected.
>
> If you press ??N (New File) you will see a dialog with a field
> called ?Location?. This will be the place you're looking for.
correct, but like before Project Drawer tree seems buggy:
If I create a new file with SHIFT + CMD + N, and I set location to "/
models" and file name to "test.html", sometimes I see the new file
placed at the end of the list at the same level of the project root.
Sometimes I will see the file twice: once inside "models" directory
and also at the end of the list, out of models directory.
If I restart TM, the files listing in project drawer remains the same
(double file) and I cannot understand why.
If I want to delete it, I have to delete both files from Project Drawer.
In the finder the file is placed correctly, but again there is a
problem with PD tree.
That is very strange and is confusing me.
Thanks for the help!
--
Ciao
Fabio
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
Last Minute a Riccione. Scopri le offerte su vacanzedivertenti.it
* Buona Vacanza!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=9525&d=15-9
Hallo,
I am trying to understand how to do some basic operations with text
mate but I didn't find help in the manual, wiki o faqs so I try here:
1. New Project
I used to have all my web project files and directories inside a main
directory, when I create a new project in textmate I drag such "main"
folder into TextMate icon and save project. That seems correct and
seems to be the only way that allows files or directories created
later in the finder to appear in the project without the need to
manually drag them.
The question: is there any way to have the paths set from my "root"
element?
For example if I drag an image that is placed into /myroot/img/ the
html file that gets it uses a src link like "../../img/image.gif". Is
it possible to have "/img/image.gif" instead?
2. Project Drawer and new files in project
How can I create a new file or duplicate an existing one?
The alternatives seems to be:
- go to the file menù and select "new" but in this way the new file
appears in a new window outside the project and I don't know why;
- go to project drawer, select the directory where I want to create it
and hit new file button. Seems ok but Project Drawer behaviour feels
a bit strange sometimes.
- use the file menu and "Save as..." to save the current file with a
new name to duplicate it. That's seems quite ok but Project Drawer
seems bugged about: If I do that, I cannot see the old file in PD, or
I can see it but it seems to have the same name of the new file
created (that is no true). To fix it I have to quit and restart PD. Is
there any way to have PD list updated correctly?
- go to the finder and make duplications from there. But this way is
longer than any other and I think it should be possible from TM.
Further more if I want to delete a file, the only way I found in PD is
to *select the file twice* (why?) and then hit the "delete" keyboard
button.
There is no "delete" command in the right click menu, as for duplicate.
If I use the new file or new directory button in PD without selecting
anything the behaviour is more strange: the file is placed or
displayed in a some strange location in the project tree. The
directory is called "group" but I don't know what it means.
3. While I editing CSS or HTML files, sometimes I need the color
chooser, the default keys CTRL + SHIFT + C do not open it. That keys
seems to be used by the default Math bundle. Is the solution to
manually change such keys in Math bundle? Why TM provides such
overlapping keys?
4. A little "bug" with file tabs
When opened files number exceed TM window width, other files are
visible under the ">>" button of tab list. Unfortunately if you need
to work on a file listed in ">>", you cannot see it selected in the
tabs so it is difficult sometimes to know on wich file you are working
or where it is placed.
Thanks.
Fabio
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
Cerchi un hotel per le prossime vacanze a Riccione? Vai su vacanzedivertenti.it
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid28&d-9
I would like to use Textmate's built-in Tidy (Ctrl+Shift+H) functionality to
indent my HTML 'without modifying anything' in the code. I write pretty neat
HTML already, I just need Tidy to indent my code with Soft-tabs.
Currently it breaks a lot of things and the formatting isn't perfect either.
Can someone please write a Tidy config for me that does this:
1 - Indents only, nothing else.
2 - I don't need certain tags to be pushed on a newline. For example:
Tidy does this:
<li>
# link
</li>
Original Code (or What I need):
<li> # link </li>
..so if I can pre-define which tags to be kept inline, that would be great.
Basically, I'd like to duplicate Dreamweaver's HTML formatting functionality
with Tidy, but the two things mentioned above are really important.
I think this is my current (default?) Tidy config:
${TM_TIDY:-tidy}" -f /tmp/tm_tidy_errors -iq -utf8 \
-wrap 0 --tab-size $TM_TAB_SIZE --indent-spaces $TM_TAB_SIZE \
--indent yes \
${TM_XHTML:+-asxhtml --output-xhtml yes} \
${TM_SELECTED_TEXT:+--show-body-only yes} \
--enclose-text yes \
--doctype strict \
--wrap-php no \
--tidy-mark no`
I'd greatly appreciate any help. Thanks!
--
View this message in context: http://www.nabble.com/Configuring-HTML-Tidy-tp25420981p25420981.html
Sent from the textmate users mailing list archive at Nabble.com.
Thanks, Allan and Sam - your suggestion worked, and I've documented
the steps I took at
http://www.davidchinphoto.com/snow-leopard-and-adobe-unit-types-osax/
====
David Chin
http://www.facebook.com/people/David_Chin/528318091http://www.davidchinphoto.com/http://www.flickr.com/photos/davidchinphoto/http://www.pbase.com/dlcmh
> On Sep 13, 2009, at 20:57 , Allan Odgaard wrote:
>
>> On 13 Sep 2009, at 09:49, David Chin wrote:
>>
>>> [...] I get an error message that looks like this:
>>>
>>> 2009-09-13 15:38:10.711 osascript[5261:903] Error loading
>>> /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/
>>> Adobe
>>> Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit
>>> Types.osax/Contents/MacOS/Adobe Unit Types, 262): [...]
>>
>>> [...]
>>> Any ideas on where in the Blogging Bundle I can make this change? Or
>>> does the change need to be made in one of the Ruby libraries?
>>
>> You need to get rid of: /Library/ScriptingAdditions/Adobe Unit
>> Types.osax
> That's what I thought as well; and indeed, after removing this file,
> the warning was gone. However, Photoshop (CS3) started complaining
> that it had not been installed properly at every launch. Nevertheless,
> it worked just fine.
> Make your choice :-)
>
> Sam
I recently updated to Snow Leopard and I am having a really odd thing pop
up. Right now when editing a file I can click any where in the window and
the cursor will be inserted there. The funny part is that I can click to the
right of a line break and the cursor will stay there. If I start typing the
line break jumps to the right of my current position. Another funny thing
is with soft tabs. In my Ruby files previously if I entered a tab (2 space
soft) and then hit delete it would remove the full tab (both spaces). Now
when I hit tab it inserts the 2 spaces but if I have to press delete twice
to clear it because it only removes one space at at time.
Anyone else seen something like this? Or anyone kno
Peer Allan
Development Team Lead, e-Business
CanadaDrugs.com
24 Terracon Place
Winnipeg, MB, Canada
R2J 4G7
Phone: (204) 654-7951
Fax: (204) 654-7910
www.canadadrugs.com
After upgrading to Snow Leopard, I tried to post to my Wordpress blog
via Textmate's Blogging Bundle, which I've used with absolutely no
problems in the past.
Now, however, the post gets posted to the blog OK, but in the Textmate
document itself, I get an error message that looks like this:
2009-09-13 15:38:10.711 osascript[5261:903] Error loading
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe
Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit
Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image
found. Did find:
/Library/ScriptingAdditions/Adobe Unit
Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture
in universal wrapper
osascript: OpenScripting.framework - scripting addition
"/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no
loadable handlers.
Doing a Google search on this, I found a discussion at
http://forums.adobe.com/message/2225123, where it was suggested that
calls to osascript be done like this:
arch -i386 osascript scriptname.extension
Any ideas on where in the Blogging Bundle I can make this change? Or
does the change need to be made in one of the Ruby libraries?
Thanks for any help.
====
David Chin
http://www.facebook.com/people/David_Chin/528318091http://www.davidchinphoto.com/http://www.flickr.com/photos/davidchinphoto/http://www.pbase.com/dlcmh
I am getting errors when running "mate" only while logged in as admin.
Things work fine when logged in as a regular user. This involves textmate
1.5.9 on OSX 10.6 and I am seeing the issue with both of my macs (mid-2007
imac and feb 2008 mbp). I did not encounter this prior to the Snow Leopard
and textmate 1.5.9 upgrades.
Starting bash, then doing a "login admin" and then attempting to edit
produces this error:
mate test.txt
Tue Sep 8 03:09:15 Mothra-2.local mate[17070] <Error>: kCGErrorFailure: Set
a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
_RegisterApplication(), FAILED TO establish the default connection to the
WindowServer, _CGSDefaultConnection() is NULL.
the console is hung at this point until you hit Control-Z
Trying again with sudo changes the error to this:
sudo mate test.txt
2009-09-08 03:00:06.946 mate[17053:e07] An uncaught exception was raised
2009-09-08 03:00:06.949 mate[17053:e07] *** -[NSArray objectAtIndex:]: index
(-1 (or possibly larger)) beyond bounds (0)
2009-09-08 03:00:06.950 mate[17053:e07] *** Terminating app due to uncaught
exception 'NSRangeException', reason: '*** -[NSArray objectAtIndex:]: index
(-1 (or possibly larger)) beyond bounds (0)'
*** Call stack at first throw:
(
0 CoreFoundation 0x926b258a __raiseError + 410
1 libobjc.A.dylib 0x965a6f49 objc_exception_throw + 56
2 CoreFoundation 0x926f63f1 -[__NSArray0
objectAtIndex:] + 209
3 mate 0x000026e3 0x0 + 9955
4 mate 0x000037af 0x0 + 14255
5 mate 0x0000261a 0x0 + 9754
6 mate 0x00002535 0x0 + 9525
)
Trace/BPT trap
the console is not hung after this error message
Any help would be greatly appreciated.
thanks
Nick
Hello,
I am using Textmate 1.5.9. When I visit a .erb file or a .html.erb file the scope selector identifies the source as being source.ruby.rails rather than the text.html.ruby which I believe is the correct scope. As a consequence a lot of my snippets are unavailable.
Thanks for any suggestions you might have.
Cheers,
Santosh
------
The following is the definition of the language:
{ scopeName = 'text.html.ruby';
fileTypes = ( 'rhtml', 'erb', 'html.erb' );
foldingStartMarker = '(?x)
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
|<!--(?!.*-->)
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
)';
foldingStopMarker = '(?x)
(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
|^\s*-->
|(^|\s)\}
)';
patterns = (
{ name = 'comment.block.erb';
begin = '<%+#';
end = '%>';
captures = { 0 = { name = 'punctuation.definition.comment.erb'; }; };
},
{ name = 'source.ruby.rails.embedded.html';
begin = '<%+(?!>)[-=]?';
end = '-?%>';
captures = { 0 = { name = 'punctuation.section.embedded.ruby'; }; };
patterns = (
{ name = 'comment.line.number-sign.ruby';
match = '(#).*?(?=-?%>)';
captures = { 1 = { name = 'punctuation.definition.comment.ruby'; }; };
},
{ include = 'source.ruby.rails'; },
);
},
{ include = 'text.html.basic'; },
);
}
Hi,
I use the ZenCoding Bundle for HTML/CSS, but frequently I need to use HTML
snippets in PHP files too. Yes, I can change the scope from just 'text/html'
to 'text..html, source.php' but editing hundreds of snippets would take
time.
Is there a shortcut method to achieve this?
Thanks in advance for your help.
Hi
JavaScript, a simple (I hope) question. Why the JavaScript Language
Grammar only recognize as foldingStartMarker the "function" key word
while Ruby, for example, recognizes all its possibilities for it to
build any kind of block?
I know, ruby has more followers in the TM community, I understand.
But JavaScript opening of blocks are much more standard than ruby ones
and it should be interesnting to have a repository from where to take
small code snippets as this pari foldingStartMarker/foldingEndMarker
that are so common in all the languages.
In the meanwhile I have borrow the ruby part of text and substitute
the JavaScript part (changing only def by function and end by }) and
it seems to work :)
- juan falgueras
Hello List,
This is a small problem, but since I encounter it many times a day I
thought that I'd ask it on the list, maybe there is a solution for it,
or there is something that I don't kknow.
Let's say I have a figure with \label{fig:plin-power-up}. When I want
to refer to this figure using \ref command, when I type "\ref{plin"
and press option+esc, the label that I am looking for is not properly
found. I have to scroll through a long list of labels (including
labels that don't have the word plin at all) to find the correct one.
On the other hand, if I type "\ref{fig:plin" and press the option+esc
keyboard shortcut, I am presented with the correct label (the list is
much shorter this time), but when I select it from the list and press
enter what I get is \ref{fig:fig:plin-power-up}. Then I have to go
back and delete the extra "fig:"
Is there something that I am doing wrong?
Any help is greatly appreciated.
Best,
Hooman Javidnia
So I've been trying to use TextMate for coding in c/c++ instead of Xcode as
of late, but any time I do a command-R to run my code, I get this error:
The current PATH is:
"/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/usr/X11/bin
Please add the directory containing “g++” to PATH in TextMate's Shell
Variables preferences.
Alternatively, the PATH can be retrieved from Terminal but this requires a
relaunch: "
Even when I try to retrieve the PATH from Terminal, I still get this error.
Has any one run into this kind of problem before? Searching yielded no
results, so I was hoping that someone here could help me.
Thanks in advance,
-Matt
--
View this message in context: http://www.nabble.com/can%27t-find-%22g%2B%2B%22-on-PATH-problem-tp25410391…
Sent from the textmate users mailing list archive at Nabble.com.
I just installed GetBundles and it does not work for me.
If I invoke the GetBundles command, a tooltip appears
saying 'unknown command, try help'
Narrowing down the problem, the script breaks down
immediately at the first invocation of "$DIALOG".
Needless to say I have the cutting edge TextMate and
tm_dialog2 is at its place, which coincides with the path
given by echo "$DIALOG"
Any ideas?
Thanks
Piero
Hi all,
I believe I have fixed the issues with interactive input on Snow
Leopard. However, this should be considered beta until it gets
included in the TM distribution.
That said, if you are brave enough to test it it would be very much
appreciated.
To install, open up a document in TextMate and enter the following one
line:
curl "http://cloud.github.com/downloads/alkemist/interactive-input/tm_interactive…
" -o "$TM_SUPPORT_PATH/lib/tm_interactive_input.dylib"
With the caret on that line, press ⌃R to run the command. Interactive
input will be reinstated and you don't need to restart TM.
Please raise any issues on this list.
LD.
I have just discovered TextMate, and am so far very happy with it,
but I think I just hit a glitch...
I am trying to edit a SQL load file that is about 5M, which shouldn't
be a problem. However, some of the lines are very long, as a complete
website contents is in a single line. I have no idea how many
characters are in this line, but I suspect about 2M worth.
Anyway, TextMate hangs while trying to work with this file. I can't
do much at all. Even a simple act of scrolling hangs. TextEdit does a
reasonably good job with the file though...
Actually, I don't think it is hanging, as it eventually responds
(about 30 seconds later), but it is so slow that it is completely
unusable. Is this a known problem? For me, it is weird files like
this that we need an editor like TextMate to be able to easily handle.
Thanks...
Jim Leask
Hi,
I'm sure this must've been asked a hundred times already, but I couldn't
google a decent answer for this: How do I enable syntax color for HTML in a
PHP file, or vice versa.
If its a PHP file I'm working on, HTML turns grey.
I'd greatly appreciate any help. Thanks!
Hello
I'm a bit stumped...
I have a simple Python script containing a call to raw_input(). When I run
the script with Cmd-R, the 'Running' window pops open, the script runs, but
upon reaching the raw_input() call I'm not prompted for any user input.
Instead the window displays an error:
EOFError: 'EOF when reading a line'
Running the script via the terminal works as expected: the script pauses for
my input, then continues.
Any ideas? I've googled about and only found one other reference to this
error (on this very forum) but the issue was resolved with an update to
TextMate.
TextMate is up to date (1.5.9)
Python Bundle is up to date (r11739)
Thanks in advance
Steve C.
--
View this message in context: http://www.nabble.com/Problem-running-a-simple-Python-script-containing-cal…
Sent from the textmate users mailing list archive at Nabble.com.
Hello together,
i have some problems with the LaTeX-Bundle of TextMate.
I got the following error message:
File "/Users/sacher/Library/Application
Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texMate.py", line 54
print "Using Tiger Compatibility version of Popen class" ^ SyntaxError:
invalid syntax
I have tried to reinstall TextMate, to update the Bundle with the
GetBundles-Bundle and from http://svn.textmate.org/trunk/. Nothing worked
for me.
I have installed the latest versions of:
- Mac OS X 10.6 (Snow Leopard)
- Textmate Version 1.5.9 (1510)
- MacTeX 2008
- Python 3.1 (r31:73572)
Thanks for your help.
Oliver
--
View this message in context: http://www.nabble.com/Problem-with-the-LaTeX-Bundle-tp25364171p25364171.html
Sent from the textmate users mailing list archive at Nabble.com.