We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Can 'find & replace' do this?

Development and Programming

OrganizedFellow's avatar
OrganizedFellow
435 posts
17 years ago
OrganizedFellow's avatar OrganizedFellow

His all.

As a part of my own GTD methods, I use various TiddlyWiki files for various things: tracking software installs/uninstalls, To-Do, and more recently (most importantly) BLOGGING EE content publishing! 😊

I’ve also started using the TiddlySnip extension for FireFox. http://tiddlysnip.com/#About

For those useing TW, or some other Wiki software, you know the similar formatting commands:

''Bold''
//Italic//
--Strikethrough--
__Underline__
[[This is a Link|http://www.website-url.com]]

Rather than tinker with Markdown, install a new EE plugin/extension, learn a new format method, etc. Could I successfully use the EE:// Find and Replace plugin to convert the above TiddyWiki syntax to semantic/compliant XHTML code?

<strong>Bold</strong>
<em>Italic</em>
<del>Strikethrough</ins>
<ins>Underline</ins>
<a href="http://www.website-url.com">This is a Link</a>

Could it do that? And if it could, could it do this?

<strong class="something">Bold</strong>
<em class="something">Italic</em>
<del class="something">Strikethrough</ins>
<ins class="something">Underline</ins>
<a href="http://www.website-url.comclass=something">This is a Link</a>

I know some of you might say, give it a shot!? But that would really just sidetrack me and my one-sided street and next thing you know, I’m on YouTube again.

       
Low's avatar
Low
407 posts
17 years ago
Low's avatar Low

The F&R plugin isn’t intended for this kind of extensive replacing. What you need is a plugin like Markdown or Textile, but uses Wiki syntax. If such a plugin already exists for, say, WordPress, than it shouldn’t be too much of a hassle to port that to EE. F&R won’t cut it, really.

       
OrganizedFellow's avatar
OrganizedFellow
435 posts
17 years ago
OrganizedFellow's avatar OrganizedFellow

Thanks for the confirmation Lowe.

I looked into a plugin for my installation of TiddlyWiki, to change the formatting syntax to something similar like textile or markdown, there isn’t one.

Is the textile or markdown plugin highly customizable? So instead of using the default textile/markdown formatting cues, I could customize it to use the TiddlyWiki ones? That would be far simpler.

       
Jamie Poitra's avatar
Jamie Poitra
409 posts
17 years ago
Jamie Poitra's avatar Jamie Poitra

OrganizedFellow,

You could try getting Markdown to be a TiddlyWiki parser but I wouldn’t recommend it. There is a large amount of work that goes into parsing text like that. You have to take into account possible nesting order of occurrence all kind of stuff that can make your life miserable. TiddlyWiki is written in Javascript right? I would look to see if someone has a PHP library already developed that parses TiddlyWiki code and see about turning that into a plugin in the same way the Markdown one has been done (Markdown’s native language is Perl but someone made a nice parser in PHP).

Jamie

       
OrganizedFellow's avatar
OrganizedFellow
435 posts
17 years ago
OrganizedFellow's avatar OrganizedFellow

Thanks Jamie. I’ve looked into several alternatives regarding. But none seem too appealing nor simple. The easiest way would be to just enter my content in plain text, with little or no formatting.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.