How to wrap a field in <code> tags

Created on 14 June 2011, over 13 years ago
Updated 22 May 2024, 6 months ago

I'm trying to figure out how to create a custom filter that will wrap the existing content in <code> tags.

Just like in this modules description I want to...

You can use simple replacements or use php code to write more powerfull things(like use it to highligth code with geshi).

My thought is that I can run the geshi filter module after this one since my content with now be wrapped in the necessary <code> tags.

I've created a filter but now I'm stuck at the part where I'm supposed to add rules.
http://awesomescreenshot.com/04devdz36

Can anyone help me out, or point me in the right direction on this?

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bryancasler

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024