0

I just wanted to know that how does this formatting works.I mean I need to enclose my code with ctrl+k.How this works programmatically in Java?

rene
  • 41,474
  • 78
  • 114
  • 152
log N
  • 925
  • 9
  • 33

1 Answers1

0

This answer by some guy called "Jeff Atwood" (who seems to know what he's talking about) suggests that you should take a look here: https://code.google.com/p/pagedown/

From that site:

PageDown is the version of Attacklab's Showdown and WMD as used on Stack Overflow and the other Stack Exchange sites.

It includes a converter that turns Markdown into HTML, a Markdown editor with realtime preview of the generated HTML, and a few useful plugins, e.g. for sanitizing the generated HTML according to a whitelist of allowed tags.

The Markdown converter can be used both in the browser (usually in conjunction with the editor, to display a real time preview), and on the server using Node.JS.

Community
  • 1
  • 1
johnsyweb
  • 136,902
  • 23
  • 188
  • 247