I receive the following error:
** ERROR **
(erb):8:in `show': undefined method `e_url' for TextMate::HTMLOutput:Module (NoMethodError) from (erb):7:in `each' from (erb):7:in `show' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/htmloutput.rb:89:in `show' from /tmp/temp_textmate.JhN5QG:16
** /ERROR **
when I attempt to Preview the following Textile code:
** CODE **
h1. header
* first item
* second item
* third item
h2. header 2
*strongly emphasized*
h3. header 3
_less emphasized_
h4 header 4
# item one
# item two
# item three
bq. this is a blockquote
More commentary.
* a
* l
* j
** /CODE **
It works fine here: http://textile.thresholdstate.com/
I am not sure what the problem is.
Any ideas.
Sometimes I have styled text on the clipboard that I would like to put into
a Markdown or HTML document. When I paste into any document, it appears as
plain text stripped of any style info.
Is it possible for a Textmate bundle to capture the paste and transform the
styled text to the syntax of the current buffer? E.g. styled text "This is
bold and this has a link" would paste into a Markdown doc as "This is
**bold** and this has a [link](http://example.com)" and into an HTML doc as
"This is <b>bold</b> and this has a <a href='http://example.com/'>link</a>".
If this isn't possible, is anyone else interested in having this feature in
Textmate or developing a system service for it?
Turadg Aleahmad
PhD student <http://www.cs.cmu.edu/~taleahma/>, HCII <http://hcii.cmu.edu>
>When I run that command, I get a new document with the HTML and CSS source.
I haven?t changed anything from the defaults. Open the Bundle Editor, locate
that command, and make sure the output is set to ?Create New Document?. I
suspect it got set to ?Show as HTML? somehow.
Lovely! That was it! It works great now.
Brandon
On Wed, Feb 23, 2011 at 7:51 PM, <textmate-request(a)lists.macromates.com>wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
>
>
> Today's Topics:
>
> 1. How to hide the scrollbar of textmate (Elvis Zhou)
> 2. Re: How to get HTML code of bundle TextMate -> Create HTML
> from Document (Brandon M Fryslie)
> 3. Re: How to get HTML code of bundle TextMate -> Create HTML
> from Document (Rob McBroom)
> 4. Re: c++ library boost (Chris Patti)
> 5. Command-Enter quit working (Pete Lasko)
> 6. Re: Command-Enter quit working (Mark Jackson)
> 7. Re: Command-Enter quit working (Pete Lasko)
> 8. Re: Command-Enter quit working (Will)
> 9. Re: Command-Enter quit working (Mark Jackson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 23 Feb 2011 21:44:04 +0800
> From: Elvis Zhou <cassyfar(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] How to hide the scrollbar of textmate
> Message-ID: <30C9993F-4ADD-4DD3-9500-69AC2F48B95E(a)gmail.com>
> Content-Type: text/plain; charset=us-ascii
>
> How could I hide the vertical and horizontal scroll bars in textmate?
> And is there any possible way to let the scroll bar never shows up even
> though my codes are more than one page?
>
> Tkanks in advence
>
> ------------------------------
>
> Message: 2
> Date: Wed, 23 Feb 2011 09:46:25 -0700
> From: Brandon M Fryslie <bmf(a)email.arizona.edu>
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Re: How to get HTML code of bundle TextMate -> Create
> HTML from Document
> Message-ID:
> <AANLkTink0TVuemCTVHZxBqmzcM04ytH2BBL-N9VXdPgK(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> >
> > I usually go into the menu at the top; File / "New From Template", choose
> > "HTML" scroll around some more, and choose from there.
> >
> > CSS is began from the same menu; File / Plain Text, then at the bottom of
> > the plain text doc one will see the words plain text and some little
> > triangles for clicking on that reveal a menu to choose, CSS is in there.
> >
> > So it seems a drill down procedure.The Preferences allow for doc of
> choice
> > to appear at start up.
>
>
> That is how to create a new HTML or CSS document.
>
> I want to get the results of the command TextMate -> "Create HTML From
> Document". This command is located in the "TextMate" bundle. This command
> takes the contents of the currently opened file and turns it into HTML,
> preserving the syntax highlighting by embedding CSS code into the document.
> On e-TextEditor for Windows, for example, the same bundle generates a page
> of markup. However on TextMate, it opens directly in a Web Preview window
> from which I am unable to extract the markup.
>
> Is there a) some way to prevent it from opening in web preview? Or b) some
> way to directly get the contents as source of a web preview window?
>
> Thanks
> Brandon
>
You can try the terminal command lsof [FILENAME]. lsof with no options
displays all opened files, lsof -t [FILENAME] displays 'terse' output of the
process ID, suitable for piping to kill.
Brandon
Hi all,
I'm new to writing TextMate bundles so I was wondering if someone
could give me some pointers here.
I'm trying to store information from the output a bundle command
against the current file. The idea is that this could then be
retrieved by another bundle command run latter.
This information doesn't need to be persistently stored, it's only
used during editing so if I can I'd prefer not to litter the file
system with these small files.
Ideally, I'd like to do something like:
$MY_VAR = "some value or other"
Any of how to do this or a flat answer of you can't at the current
time would be gratefully received.
Cheers,
Sean.
>
> I usually go into the menu at the top; File / "New From Template", choose
> "HTML" scroll around some more, and choose from there.
>
> CSS is began from the same menu; File / Plain Text, then at the bottom of
> the plain text doc one will see the words plain text and some little
> triangles for clicking on that reveal a menu to choose, CSS is in there.
>
> So it seems a drill down procedure.The Preferences allow for doc of choice
> to appear at start up.
That is how to create a new HTML or CSS document.
I want to get the results of the command TextMate -> "Create HTML From
Document". This command is located in the "TextMate" bundle. This command
takes the contents of the currently opened file and turns it into HTML,
preserving the syntax highlighting by embedding CSS code into the document.
On e-TextEditor for Windows, for example, the same bundle generates a page
of markup. However on TextMate, it opens directly in a Web Preview window
from which I am unable to extract the markup.
Is there a) some way to prevent it from opening in web preview? Or b) some
way to directly get the contents as source of a web preview window?
Thanks
Brandon
How to I get the keyboard shortcuts to work for Rails? I'm trying to
Insert ERb's like <%= %> and <% %> and the commands should be Ctrl + Z
and Ctrl +X -- it doesn't work. I have the document type set to Ruby
on Rails.
Any ideas on what I'm doing wrong?
Hello,
How can I include boost libraries with Textmate?
Thanks for the answer.
André
// simple_example_1.cpp
#include<iostream>
#include<boost/tokenizer.hpp>
#include<string>
int main(){
using namespace std;
using namespace boost;
string s = "This is, a test";
tokenizer<> tok(s);
for(tokenizer<>::iterator beg=tok.begin(); beg!=tok.end();++beg){
cout << *beg << "\n";
}
}
BUG:
When using the Shell Script plugin's tempfile creation expansion (temp[tab]), a dollar sign gets left out:
temp[tab]
becomes
TMPFILE="(mktemp -t Convert_ClassOO_Metrics_To_Tabular)"
trap "rm -f '$TMPFILE'" 0 # EXIT
trap "rm -f '$TMPFILE'; exit 1" 2 # INT
trap "rm -f '$TMPFILE'; exit 1" 1 15 # HUP TERM
Note the missing dollar sign $ in the first line to make the parentheses executable.
FIX:
I added a backslash in the bundle before the dollar sign that's there and is getting dropped (or rather, interpreted as a variable probably):
${1:TMPFILE}="$(mktemp....
becomes
${1:TMPFILE}="\$(mktemp....
${1:TMPFILE}="\$(mktemp -t ${2:`echo "${TM_FILENAME%.*}" | sed -e 's/[^a-zA-Z]/_/g' -e 's/^$/untitled/'`})"
${3:${4/(.+)/trap "/}${4:rm -f '\$${1/.*\s//}'}${4/(.+)/" 0 # EXIT
/}${5/(.+)/trap "/}${5:rm -f '\$${1/.*\s//}'; exit 1}${5/(.+)/" 2 # INT
/}${6/(.+)/trap "/}${6:rm -f '\$${1/.*\s//}'; exit 1}${6/(.+)/" 1 15 # HUP TERM
/}}
Not sure how to work that change into the codebase.
-Rob