FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP functions to convert markup efficiently
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP functions to convert markup efficiently [message #183855 is a reply to message #183844] Fri, 22 November 2013 15:42 Go to previous messageGo to previous message
Arno Welzel is currently offline  Arno Welzel
Messages: 317
Registered: October 2011
Karma:
Senior Member
Am 22.11.2013 13:48, schrieb James Harris:

> Having looked at Markdown and Smarty that people suggested it might be
> better if I bite the bullet and develop my own markup language. It would
> then be easier both to limit what it allows and also to add features as
> needed. I have been running some syntax tests and it seems quite easy to do
> and fast to process even though the markup is currently a little cumbersome
> to write.

I think this is not a good idea.

Existing markup languages are well documented and there are existing
implementations to parse the markup and convert it to HTML (or other
formats) which are not only used by one person - so it is likely that
bugs will be fixed as well within a reasonable time.

Besides Markdown and Smarty you can also try DokuWiki - it's markup can
be extended using syntax plugins (and you can create your own plugins as
well to handle block level or inline elements etc.).

[...]
>> What kind of markup is needed?
>
> Quite a lot. Things like these:
> * bold, italic
> * links to local pages and remote URLs
> * images, code
> * headers, lists, line breaks
> * tables
> * other things will likely be required but are not defined yet

So - if HTML is to complicated you should really try DokuWiki first.

And if even this syntax is too complicated you should not use a markup
language at all but a WYSWIG editor which produces valid HTML (for
example TinyMCE or CKEditor).

> For completeness, I should add that the markup would also need to pull in
> similarly marked up text from other files and to populate tables from
> databases.

This is out of scope for "markup" - but DokuWiki can handle that as well
using includes - there are several plugins to include other files within
a document and you can extend these plugins to use only "marked" content
from a file as well.


--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: changing iframe source via php
Next Topic: converting numbers to ascii values
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 03 12:51:02 GMT 2024

Total time taken to generate the page: 0.06055 seconds