Add a class to a link

4 views
Skip to first unread message

Adrián Ribao

unread,
Jul 8, 2010, 3:44:26 AM7/8/10
to creoleparser
Hello,

I need to add a class to some links: <a href="http://www.google.es"
class="myClass">Google</a>

Can this be done?

Thank you,

Adrian

Bryan Alsdorf

unread,
Jul 8, 2010, 4:45:29 PM7/8/10
to creole...@googlegroups.com
Hi Adrian,

On Thu, Jul 8, 2010 at 2:44 AM, Adrián Ribao <ari...@gmail.com> wrote:
> Hello,
>
> I need to add a class to some links: <a href="http://www.google.es"
> class="myClass">Google</a>
>
> Can this be done?

You should look at the "wiki_links_class_func" parameter to this
method: http://creoleparser.googlecode.com/svn/docs/modules/dialects.html#creoleparser.dialects.create_dialect

Also look here for information on creating the custom dialect:
http://creoleparser.googlecode.com/svn/docs/usage.html#creating-a-custom-dialect

Best Regards,
/bryan

Reply all
Reply to author
Forward
0 new messages