Skip to main content
Known Participant
March 30, 2021
Question

Pasting/importing XML code examples into FM

  • March 30, 2021
  • 3 replies
  • 182 views
Hi all. I need to import or paste several examples of XML code into a FM book, but I need it to maintain it's format when brought into FM. Is there a way to make that happen? I've attached an example from a previous edition of this chapter. Cheers and thx -- John
 
 
 
    This topic has been closed for replies.

    3 replies

    johnb3665Author
    Known Participant
    April 10, 2021

    Hi all. Thx for your help. I figured it out. For me, importing the code from XMLSpy make it a lot easier than from the browser. 

     

    Cheers -- John

    Bob_Niland
    Community Expert
    Community Expert
    March 30, 2021

    It looks like the previous author had figured it out with the C.Code paragraph format:

    • Monospaced font (not shown in your dialog screenshot)
    • Regularly-spaced tab stops (for which there never were any standards)
    • First indent to offset everything, and a
      Left ident to set off long line wraps.

    The blue hypertext appears to be from the code snippet to elsewhere in the FM document, and if so, would have likely been added by hand.

    Jeff_Coatsworth
    Community Expert
    Community Expert
    March 30, 2021

    Umm, isn't your example already in FM? Why not use Text Insets?

    johnb3665Author
    Known Participant
    March 30, 2021

    Hi. No, my example is from the previous version of this book I'm working
    on. This is the way it should look. But when I paste the updated bit of
    code, it loses all formatting and looks just like text.

    Cheers -- John
    [PII removed by moderator]