Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Pasting/importing XML code examples into FM

Explorer ,
Mar 30, 2021 Mar 30, 2021
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
 
abstractionDefinition-xml.PNGexpand image
 
 
141
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 30, 2021 Mar 30, 2021

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 30, 2021 Mar 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]

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 30, 2021 Mar 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 10, 2021 Apr 10, 2021
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines