First time here? Check out the FAQ!
1

xml in questions and answers
 

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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 13 years ago
John Turnbull's avatar
11
John Turnbull
asked 13 years ago

Comments

see more comments

1 Answer

0

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 13 years ago, answered 13 years ago
link

Comments

see more comments