Hi,
I may be missing something obvious here, but I have a question about code reuse within a language grammar. I have a language (Stata) which permits constructs of this form
<prefix cmd> [options]: <cmd>
Moreover, prefixes can be combined. If we call
<prefix cmd> [options]:
the prefix, then we may have
<prefix> [[<prefix>] ...] <cmd>
I'd like to match the prefix (and scope it as meta.prefix), and then match the <cmd> when it follows the prefix. However, the <cmd> can also appear in other contexts too (where it should also be matched). As I'm thinking about this now, it seems that it would be ideal if I could define the prefix (which itself requires a rather complicated regex) in one place, and then refer to that in other places, such as where a specific command that can follow a prefix is defined. I am familiar with the language repository and have used it for recursive constructs and to embed one grammar within another, but can't figure out how it might be used here (if at all).
Should I be thinking about this a different way?
Thanks,
-- Phil
Hi all,
On my textmate 1.5 installation I changed the definition of start and stop markers for the python language definition.
Now I realized that by replacing the original start and stop markers, I lose the ability to fold function definition, which is more annoying than I anticipated.
My problem now is that I don't know how to redefine the marker definitions and I am not able to revert the language definition.
Can somebody help me by just sending the original foldingStartMarker / foldingStopMarker definition in the python language definition?
That would be really helpful!
Also;
How can I define more than one Start/Stop marker?
My current definition looks like this:
foldingStartMarker = '^[^#]*(\([^\)]*$|\{\s*$)|(#){1}(\s)+[0-9]+';
foldingStopMarker = '(^\s*\)|^\s*\})|(#){1}(\s)+(end)+';
But I would like to have several Start and Stop markers.
Thanks!
Hello, I was wondering if I could get some help with something related to mail.app.
There currently is a Mail bundle in both textmate and textmate 2 which
allows you to send html to the mail application (With Safari), I found this in [1] and
other sites. Since writing emails in html is a [bad idea] I thought, why not use
the awesome textmate preview to view the contents of the email as both
a preview from the current plain text in the compose window and a preview
of the email received.
I'm currently copying the content of the email to a blank document in textmate and previewing
it. So why not just skip this and activate textmate with a keyboard shortcut from the mail application?
This may not be outside textmate capabilities and I think it would be a great addition
to the release version. The mail application would need a plugin, just a button so that
when it is clicked in the composer window or in the view email window it sends the
plain text to text mate and then textmate would call markdown/multimarkdown or
whatever program you want to use to convert the message and display it with
the html previewer.
Anyway, just some thoughts that would make me look forward even more to the
release of textmate 2.
-Manuel
PS.
Thank you for the fix related to the html preview in the last email I sent. I forgot to reply last time
to give my thanks.
[1]: http://www.hawkwings.net/2006/05/11/more-textmate-goodness-html-emails/
[2]: http://www.freeantispam.org/html-email.php
I have a question regarding citation completion in the LaTeX bundle, a mechanism I constantly rely on. I greatly appreciate not having to open my bibfiles via Bibdesk. My preamble normally looks something like below, with citation completion working as expected:
\documentclass{memoir}
\input{../../preambles/custom_style.tex}
\begin{document}
etc...
\end{document}
But it doesn't work if I put my preamble into a custom package (say, custom.sty, which I put into ~/Library/texmf/tex/latex/local and which I call with \usepackage{custom} without having to specify path). The custom package works perfectly in all respects except citation completion.
I'm at a loss trying to figure out what the problem is (a minor one, granted, I can always keep to \input{mypath/to/custom_style.tex}). Is it the custom package? My custom package has the following lines at top and bottom:
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{custom}[2013/04/15 Custom Package]
....
\endinput
Or is it something else regarding the path to my custom.sty package that is not recognized? Any suggestion appreciated,
--Gildas
Hi All,
I'm interested in using TextMate as the front-end for the Monkey compiler
(http://www.monkeycoder.co.nz).
I downloaded and installed textmate. Run it a couple of times, and it ran
fine on my 10.8.3 iMac.
Then I installed the bundle that is meant to be the Monkey support. The
icon bounced as if it were starting, and if I load Activity, I can see the
process taking up ever more memory until the OS kills it.
That's all that happens.
I tried removing the bundle.
No joy.
Is this a known problem with textmate?
Thanks,
-Ken
--
View this message in context: http://textmate.1073791.n5.nabble.com/Hanging-on-startup-tp26466.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
sometimes, when using the R bundle and sending lines to the terminal, it happens that the terminal starts "popping" like when it is out of focus , calling for attention.
It happens randomly, and I do not know how to stop it.
If I restart both TextMate and Terminal the problem goes away, only to come back randomly.
Any ideas?
Mic
Hi everybody.
I am trying to switch to TextMate for my R/Latex needs. I ma trying to use Sweave, installing the bundle found in the SVN repository from macromates ( http://svn.textmate.org/trunk/Bundles/SWeave.tmbundle/ )
I can correctly generate pdf files from my source, but I have an issue: I do not know how to use forward and inverse search like I do with tex files and the latex bundle.
Can anybody help me with that?
Thanks,
Michele
rmate is really cool. I want to work with a project directory
though, not opening one file at a time. Is there any way to get rmate
to open a directory or a project file?
All the icons drawn in the gutter (fold markers, bookmarks etc) somehow have adrak-gray background on my (non-retina) system.
If I simply open the icon (for example "Folding Collapsed.png") and re-save it without changes, it then displays fine.
Any ideas why that is?
Thanks
Gerd