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?
Asked
Active
Viewed 68 times
0
-
1I'm pretty sure Java has nothing to do with it. – lc. Aug 19 '13 at 09:30
-
Ok so is it that its a functionality of some scripting language?I need to implement the same thing in java. – log N Aug 19 '13 at 09:31
-
2This question appears to be off-topic because it is about the Stack Overflow site itself, and can no longer be migrated. – Qantas 94 Heavy Nov 16 '13 at 00:39
1 Answers
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.