Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a rich text box with n number of paragraph.
i need to format(text format) the content of each paragraph.

example is given below

input is :-


Text to be formatted




output should be

Text after formatting
Posted

1 solution

not exactely sure what you're asking for - but I would

a) store the input text in 'markdown' format - quite simple, can be produced by any simple editor
b) have a markdown parser to parse the markdown formatted document
c) feed the output from the markdown parser into an rtf document builder - maybe something like RTF Document Constructor Library[^]
d) the result can then be displayed in an rtf textbox

'g'
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900