Re: PHP functions to convert markup efficiently [message #183844 is a reply to message #183839] |
Fri, 22 November 2013 12:48 |
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
|
|
|