Ask Your Question
1

xml in questions and answers

asked 2011-06-07 10:09:56 -0600

John Turnbull gravatar image

updated 2011-06-07 12:26:27 -0600

Evgeny gravatar image

Like everything I see -- a lot! But ...

We will have a community built around xml document editing who will want to ask questions like:

"Should I be using <prereqs> element before the <context> blah </context> ?"

I can that this is working in the editor as I write, but not in the preview window. Can I be sure about the output?

Are there plans to fix the preview?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2011-06-07 12:02:49 -0600

Evgeny gravatar image

updated 2011-06-07 12:23:15 -0600

There is an editor button for formatting code that has "1 0 1" etc. on it. Just select the area you want to format the code and hit the button.

It is unfortunately tough to deeply modify the previewer, because the Markdown to HTML conversion is done in two places: by javascript in the browser for the preview and on the server - for the actual output. Any change must be done in two places and both components are third party libraries.

Here is an example - copy-pasted from somewhere else, looks fine in both previewer and the static display (each line prefixed by 4 or more spaces):

<!-- Edited by XMLSpy® --> 
<note> 
    <to>Tove</to> 
    <from>Jani</from> 
    <heading>Reminder</heading> 
    <body>Don't forget me this weekend!</body> 
</note>

and here is an inline version <say>hello</say> - needs to be surrounded by the backticks.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-06-07 10:09:56 -0600

Seen: 64 times

Last updated: Jun 07 '11