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 #183844 is a reply to message #183839] Fri, 22 November 2013 12:48 Go to previous messageGo to previous message
James Harris is currently offline  James Harris
Messages: 11
Registered: November 2013
Karma:
Junior Member
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.

"Arno Welzel" <usenet(at)arnowelzel(dot)de> wrote in message
news:528F32EE(dot)5030800(at)arnowelzel(dot)de...
> Am 21.11.2013 19:30, schrieb James Harris:
>
>> I am looking for a way to mark up text in a way that PHP would be able to
>> efficiently and quickly convert to HTML.
>
> What kind of text?

What are the options? I was just thinking about normal text of the kind that
would appear on a web page.

> 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

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.

James
[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: Tue Nov 26 18:03:15 GMT 2024

Total time taken to generate the page: 0.03931 seconds