I am working on mocking up a site, and I wanted to change the some-
site.com link to example.com using the Bundle Editor. I can highlight
the command, and see that it's there and what the shortcut is, but I
can't seem to edit it at all. (I don't have this problem with other
snippets and bundles and so forth.)
How do you do this?
Thanks,
Walter
Hello, please would you unsubscribe me from the mailing list?
I've tried this process using the form on your web page but I am still
getting the newsletters.
Thanks,
Alistair
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/
Very nice, thanks!
baptiste
1. Re: highlight (JiHO)
Message: 1
Date: Sun, 10 May 2009 19:52:30 -0400
From: JiHO <jo.lists(a)gmail.com>
Subject: [TxMt] Re: highlight
To: TextMate users <textmate(a)lists.macromates.com>
Message-ID: <91EB0E2E-0293-4B78-9776-04D854EC3710(a)gmail.com>
Content-Type: text/plain; charset="us-ascii"
On 2009-May-09 , at 15:35 , baptiste auguie wrote:
> Thanks for the two replies. highlight is a cool program I found here,
>
> http://www.andre-simon.de/doku/highlight/en/highlight_io.html
>
> I made an attempt to create a TM command for this, and it seems to
> work without the need for a temp directory,
>
> highlight -H --syntax R --inline-css --fragment --enclose-pre
> --style print `$TM_SELECTED_TEXT` | pbcopy
>
> It seems to work, albeit with some warning (seems to be attempting
> at interpreting the code of TM_SELECTED_TEXT) but since I simply
> discard the output and use the clipboard it's fine for my purpose.
>
> It's a small world JiHO! --- I'm hoping to use this shortcut to post
> R code on the new ggplot Wiki (http://ggplot2.wik.is).
OK, then I tried to link to some pasties and it does not work on this
wiki.
But indeed highlight seems to be nice and is very flexible in its
input. In particular it accepts input from stdin (where TM pipe your
text). So I installed it from macports but I don't have all the
options you have (--inlince-css, --enclose-pre etc.) because the
version there is too old.
Still a simple, one language (R here) bundle command could be:
highlight -X -l --include-style --syntax=R --style=print
input set to selection or document
output set to new document (or discard and add "| pbcopy" at the end
of the command).
This feeds the curent selection or document to highlight directly, not
need for the $TM_SELECTED_TEXT (and this solves your problems caused
by shell expansion I guess).
But creating a temporary file might still be desirable: if you create
it with the same extension as the current file, highlight will be able
to recognize the language and your bundle command will work for any
language.
Attached is my bundle item (currently set to display the HTML, pipe to
pbcopy if you want to copy). Here is the code:
# Extract file extension
extension=$(echo "$TM_FILEPATH" | awk -F "." {'print $NF'})
# Create a unique temporary file
tmpname=$(mktemp /tmp/TMtemp.XXXX)
tmpfile="$tmpname.$extension"
# Capture TM selection/Document
cat > $tmpfile
# Feed that to highlight
highlight --input="$tmpfile" -X -l --include-style --doc-title=$
(basename "$TM_FILEPATH") --style="vim-dark"
Hi all,
Thanks for the two replies. highlight is a cool program I found here,
http://www.andre-simon.de/doku/highlight/en/highlight_io.html
I made an attempt to create a TM command for this, and it seems to work without the need for a temp directory,
highlight -H --syntax R --inline-css --fragment --enclose-pre --style print `$TM_SELECTED_TEXT` | pbcopy
It seems to work, albeit with some warning (seems to be attempting at interpreting the code of TM_SELECTED_TEXT) but since I simply discard the output and use the clipboard it's fine for my purpose.
It's a small world JiHO! --- I'm hoping to use this shortcut to post R code on the new ggplot Wiki (http://ggplot2.wik.is).
Cheers,
baptiste
----------------------------------------------------------------------
Message: 1
Date: Fri, 8 May 2009 10:08:01 -0400
From: JiHO <jo.lists(a)gmail.com>
Subject: [TxMt] Re: hightlight macro
To: TextMate users <textmate(a)lists.macromates.com>
Message-ID: <7ADEBAA5-A929-4FB6-9782-8C4CEA7BE126(a)gmail.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
On 2009-May-07 , at 05:21 , baptiste auguie wrote:
> I'm using a command line to create a html snippet with embedded css
> to post on a Wiki. At the moment I run,
>
> highlight test.r -H --inline-css --fragment --enclose-pre --
> style print | pbcopy
>
> on the command line. I'd like to create a macro in TM so that I can
> get the same processing applied to selected text in a document. I've
> never written any TM macro and I don't know Ruby (or bash for that
> matter). Would you be kind enough to help me out?
Apparently highlight (is that a command of your creation or something
else? It would help to know a little more about it) takes a file as
argument. So the only ways to have it work on a selection are:
1- to modify highlight to accept either a file or some raw text from
standard input (or only raw text)
2- copy the current selection to a temporary document and feed that to
highlight
If 1, then you can use highlight with no argument and set TM to feed
it selection or document. If the new version can only be made to
accept raw text you can still use it independently this way:
cat doc.r | highlight -H -...
If 2, the command would look like
# create a temporary document (cleanly)
tmpDoc=$(mktemp)
# fill it with TM input (selection or doc)
cat > $tmpDoc
# feed it to highlight
highlight $tmpDoc -H -...
Otherwise, depending on the purpose of these snippets, there are
plenty of online paste boards with syntax highlighting support for R,
and one is accessible from textmate (Paste selection online). You get
something like this:
http://pastie.textmate.org/private/epwkcdngtzljzkf1zxg
with a link you can embed in other pages (and I guess also in a wiki).
I am also pretty sure I saw some that could output the html that is
displayed (with the colors etc.).
Hop that helps.
JiHO
---
http://jo.irisson.free.fr/
Hey guys,
After the HTML bundle last week, it's time for my CSS bundle to get
the "separate bundle" treatment... It won't touch the default CSS
bundle anymore and it's called mCSS... Although this bundle is
anything BUT minimal... I had to stick so many tab triggers in there
that I'm going to dream about it tonight I think ;)
Anyway, it's over there:
http://minimaldesign.net/articles/read/textmate-css-bundle-v.1.5
Let me know if there's anything else you'd like to see in there...
Thanks!
- Yann
On May 8, 2009, at 11:12 AM, Gerd Knops wrote:
> It's the dashes... ATM the bundle tries to find whatever word TM gives
> it, it ignores the selection.
>
> As a test, add '-' to the list of "Word Characters" (TextMate/
> Preferences, Text Editing tab). That should cause 'get-bottom-up-
> codelets' to be indicated as word, which the bundle should find.
That does the trick, thanks! And it will save me from having to select
the whole word for searching.
>> BTW is there source available for tmctags?
>>
> It's just a perl script...
Oh, yes, I see... I guess I just had too much whizzing around when I
visited the Support/bin directory.
Nice package!
Best,
Charles
Dear list,
I'm using a command line to create a html snippet with embedded css to post on a Wiki. At the moment I run,
highlight test.r -H --inline-css --fragment --enclose-pre --style print | pbcopy
on the command line. I'd like to create a macro in TM so that I can get the same processing applied to selected text in a document. I've never written any TM macro and I don't know Ruby (or bash for that matter). Would you be kind enough to help me out?
Thanks,
baptiste
Hi guys!
I've been using TextMate for a while (still a bit of a newbie though),
especially for Latex and I really LOVE everything about it. However, after
making a clean install due to a new MacBook I'm having some problems with
cleaning up the aux files that is created when I press cmd-R.
As I remember from my previous installation - all the aux files were deleted
when I clicked "clean up" in the html-window (that is displayed after cmd-R)
or by hitting ctrl-alt-delete, but now nothing happens - all files are still
in the folder where the .latex and .bib files are and the html-window
displays "Found 0 errors, and 0 warnings in 0 runs" after "clean up".
Have I messed something up or is there some issues with the "trash aux
files" command? Please help as it's so frustrating to have to manually
delete these files when, for instance, I've made some changes in the
.bib-file and need to include this new citation - but it only results in a
[?] until I manually delete the aux files and re-run "Typeset and view".
My installation:
TextMate v. 1.5.8 (1498)
Latex Bundle rev. 11510
MacTex 2008 with Skim as my selected viewer
Thanks so much for your help!!
/AM
Ps. Some time ago I read in some forum (maybe here I don't remember, sorry)
that the issue with "umlauts" in labels for sections (etc.) would be
addressed by changing the umlauts to the "normal" character without the
umlaut or a "_"-character as other special characters. Any news on this?
--
View this message in context: http://www.nabble.com/Latex---problem-with-%22clean-aux-files%22---nothing-…
Sent from the textmate users mailing list archive at Nabble.com.
Hi
because a reason I can't understand, Wiki in spanish is using urls
with funny chars like
http://es.wikipedia.org/wiki/Programación_dinámica_(computación)
this only gives you problems, and TextMate is no an exception. TM is
unable to jump (Cmd-F1) to them.
-- Juan Falgueras
Are there any TextMate users working on Automake, Autoconf, and TADS3
grammar bundles?
-----------------------------------
See the amazing new SF reel: Invasion of the man eating cucumbers from
outer space.
On congratulations for a fantastic parody, the producer replies :
"What parody?"
Tommy Nordgren
tommy.nordgren(a)comhem.se