Hi there,
I'm using build 1509 (Cutting Edge).
I'm experimenting with PHP alternate syntax (no curly braces) and
can't get the blocks to fold.
My PHP language bundle contains the following:
foldingStartMarker = '(/\*|\{\s*$|<<<HTML)';
foldingStopMarker = '(\*/|^\s*\}|^HTML;)';
Can anybody point me in the right direction to get my alternate syntax
to play nice ?
PHP alt syntax looks like this:
if ($high < 11):
return $high;
else : return false;
endif;
-Peter
Anyone want to take a shot at this one...
Write "foodbar" in textmate, select it, and inspire lookup word in
google and link, it will be replaced with 'Received exception:
undefined method '.
A lot of the time it also crashes TM. I am on 10.5, but this has been
happening for a long time. I just learned of this feature, and it is
very handy.
#!/usr/bin/env ruby -wKU
# an evolution of the code from skiadas.dcostanet.net/afterthought
# retrieves link from Google automatically and creates XHTML link
# improved call to progress bar, added ability to retrieve title
# of page and create title attribute in link using idea
# borrowed from iamrice.org. Improved regex to handle title tags
# newlines, spaces and capitalization differences
require ENV['TM_SUPPORT_PATH'] + '/lib/progress.rb'
require ENV['TM_SUPPORT_PATH'] + '/lib/escape.rb'
require 'net/http'
require 'open-uri'
require 'erb'
def getLinkWithTitle(phrase)
TextMate.call_with_progress(:title => "Contacting Google", :message
=> "Retrieving Link for “#{phrase}”…") do
response = Net::HTTP.get_response(URI.parse(URI.escape("http://www.google.com/search?q=#
{phrase}&btnI=I'm+Feeling+Lucky")))
url = response.to_hash['location'].to_a.first
fp = open(url)
title = fp.read.match(/<title>([^<>]*)<\/title>/i).to_a[1]
title = title.strip
return url, title, phrase
end
end
url, title, input = getLinkWithTitle(STDIN.read)
print ERB.new(ENV['TM_LINK_FORMAT']).result
--
Scott * If you contact me off list replace talklists@ with scott@ *
LaTeX users:
My plan is to remove most of the completion commands and latex
snippets from the LaTeX bundle. They will be replaced by a single
command. I have a prototype under construction, you can see how it
works here:
http://lasersox.net/LaTeXCompletion.m4v
Basically there is a tree of completions, and you can navigate them
just by typing. We can work citation completion, and all existing
snippets into this system.
Thoughts?
Hi,
The big problem for me is the completion with ⌥⎋, I often wrote
this remark on the list but without success ...
Perhaps Brad has not enough time to look at this ...
I would like to know if I'm the only one to have the next problem
a) Create a .tex file: essai.tex
you can put for example this inside :
Is it a bug?\label{title}
yes\label{answer}
b) Create a .tex file: try_completion.tex
\documentclass[11pt]{article}
\begin{document}
\input{essai.tex}
yes\re
\end{document}
now after \re ⌥⎋, no result
c) Remove the line \input{essai.tex}
then after ⌘S, \re ⌥⎋ gives
a window with
real
ref
etc...
d) but when the caret is inside the braces of \ref{ } , the
completion is always correct
My solution : I modified the LateXCommandCompletions.rb file.
def recursiveFileSearch(initialList)
extraPathList = []
fileExt = "tex"
# I add the last line
Perhaps somebody can tell me if this solution is correct and if the
problem exists out of my home !!
Best Regards
Alain Matthes
PS I try the completion with ⌘\ but with a french keyboard we need 4
fingers and 3 fingers for
⌘}
I prefer §, ⌘§ and ⌥§ for the macro LaTeX Symbol of Guido
Governatori, This macro is fine
because it's more natural (for example with the arrows) and the macro
adds $ ... $ .
Perhaps a macro Insert Math LaTeX Symbol in the main bundle will be a
good thing
Hi
I made a clean install of Snow Leopard, and the first soft installed,
was TextMate
I go to the LaTeX prefs of the official bundle LaTeX and when I go
out ot the prefs,
I got this message :
.... configure.py:8 DeprecationWarning os.popen4 deprecated
What is it ?
Best regards
Alain Matthes
I'm not sure how this happened, but ctrl-> (ctrl, shift and .) does not
create <% %> tags. I can select the menu item and get them, but the
hotkey doesn't work. I also went into the bundle editor, and reassigned
the hotkeys to something else and get nothing.
When I change it to apple <, I get a beep.
I downloaded the most recent bundles for ruby and ruby on rails. What
am I missing?
I recently switched from fink to Macports and reinstalled a bunch of stuff,
including Ruby and Ruby Gems. Ruby works fine on the system: I can run
"ruby", "irb", "gems", and "env ruby". (This is the Macports install, so
all Ruby binaries are now in /opt/local/bin.) However, When I try to
compile a LaTeX file from inside Textmate I get the following error:
env: ruby: No such file or directory
Presumably Textmate is still looking for my old version of Ruby. Where can
I change this setting?
--
W.P. McNeill
http://staff.washington.edu/billmcn/index.shtml
If you can send it to me I would appreciate it. Thanks!
On Thu, Oct 22, 2009 at 5:00 AM, ?douard Gilbert wrote:
> ----------------------------------------------------------------------
>
> Le 21 oct. 09 ? 12:08, Darren Brierton a ?crit :
>
> > This is why TextMate needs a DTD/Schema parser like PSGML-mode and
> > nXML-mode provide for Emacs.
>
> I started working on something, but never took time to finish.
>
> It's a XSTL stylesheet transforming Relax NG to TextMate grammar.
> Last time I wanted to add some information needed for completion, but
> had to take on something else and didn't finally get back to it.
>
> Revisions up to current were only doing (unperfect) syntax coloring.
>
> It's not working automatically and has quite a tendency to create long
> grammars.
> Test on the very simple plist DTD (~ 20 lines) gives results nearly
> 1000 lines long.
> Probably way too much redundancy.
>
> But I still can send it to you, if you'd like.
>
> > On 20 Oct 2009, at 22:26, Timothy Bates wrote:
> >
> >> someone will need to add the new elements to the bundle...
> >> On 20 Oct 2009, at 19:39, Rodrigo Soares wrote:
> >>
> >>> Hi,
> >>>
> >>> I can't collapse blocks of code written with new HTML5 structural
> >>> elements such as article, section and nav.
> >>>
> >>> Is there a way to make them work? HTML4 elements work fine.
> >>>
> >>> thanks,
> >>> Rodrigo
> >>>
> >>> _______________________________________________
> >>> textmate mailing list
> >>> textmate(a)lists.macromates.com
> >>> http://lists.macromates.com/listinfo/textmate
> >>
> >>
> >> _______________________________________________
> >> textmate mailing list
> >> textmate(a)lists.macromates.com
> >> http://lists.macromates.com/listinfo/textmate
> >
> >
> > _______________________________________________
> > textmate mailing list
> > textmate(a)lists.macromates.com
> > http://lists.macromates.com/listinfo/textmate
>
> ?douard GILBERT
> edouard.gilbert(a)gmail.com
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
Hi,
I can't collapse blocks of code written with new HTML5 structural
elements such as article, section and nav.
Is there a way to make them work? HTML4 elements work fine.
thanks,
Rodrigo