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
On Feb 23, 2011, at 11:46 AM, Brandon M Fryslie wrote:
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.
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.
I am not to sure what is going on here, but the beginning question: I want to get the results of the command TextMate -> "Create HTML From Document". Personally, i do not use any thing but the HTML templates or plain text and choose either javascript, CSS or PHP. To see the text with the HTML markup , save the doc and open in a browser. If you are working with a Mac install MAMP, and that could be a bugger to figure out for some one new to its interface. basically save the doc in the MAMP application /ht docs directory and then go into the address pane and place the blinking curser at the far right end and delete back to the 888/ and place the name of the file with its file syntax example.html in there and hit enter, rendered HTML .
On Wed, Feb 23, 2011 at 10:08 AM, Rob McBroom mailinglist0@skurfer.comwrote:
On Feb 23, 2011, at 11:46 AM, Brandon M Fryslie wrote:
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.
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.
-- Rob McBroom http://www.skurfer.com/
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate