>
> From: Benct Philip Jonsson, Mon, December 01,
> 2008 5:37 am
>>>
>>> Hi,
>>>
>>> I'm relatively new to Linux (Ubuntu) and new
>>> to Cream, which I coose for it's combination
>>> of ease of use for a Windows convert (once
>>> forcibly converted from Mac Classic OS :-) and
>>> ample selection of syntax highlighting.
>>>
>>> I have some questions though.
>>>
>>> 1. How can I do regex search (and replace)
>>>    without dropping into vim mode? (assuming
>>>    that I can! :-)
>
> This is currently not possible. Ages ago there
> were some patches to add options in Vim to make
> some additions to the dialog boxes (check box)
> but this has never been incorporated into Vim.
> So "Ctrl+L :" remains the only way.
>
>>> 2. Is there a list/manual of the differences
>>>    between Perl (or POSIX) and Vim regex
>>>    syntax?
>
> Not sure, Google probably points to a few, this
> has also been discussed on the Vim list.
>
>>> 3. How can I make Mason syntax highlighting be
>>>    automatically choosen for files with an
>>>    .html ending?
>
> You can override Vim's defaults with a file
> modeline.

What should it look like? I'm a newbie, I'm
afraid...

> You can also force your own highlighting with
> customized autocmds in your cream-user.

I tried putting

   au! Bufread,BufNewFile *.html    set filetype=mason

into ~/.cream/cream-user.vim, but it doesn't seem
to do anything.

Also I downloaded some syntax definitions for
mediawiki and pandoc. Where should I put the
files and what should I put it cream-user to
invoke them?

>
>>> 6. Can I run html tidy on an open file from
>>>    within Cream?
>
> You'll need to write a little Vimscript. If
> you can figure out what to type on the
> commandline, putting it in a menu item or
> keystroke is simple.

Can you give an example? Basically what I put on
the commandline is

  tidy [options] file.html

To run tidy on a string from within a Perl
script I use

   = qx#echo "" | tidy --quiet yes --show-errors 0 --show-warnings no  
--output-xhtml yes#

A workaround since tidy normally expects to run on
a file and write back to the same file.



/BP 8^)>
-- 
Benct Philip Jonsson -- melroch atte melroch dotte se
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 "C'est en vain que nos Josués littéraires crient
 à la langue de s'arrêter; les langues ni le soleil
 ne s'arrêtent plus. Le jour où elles se *fixent*,
 c'est qu'elles meurent."           (Victor Hugo)


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
cream-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cream-general

Reply via email to