Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 02:07 pm EST

Geeklog Forums

wiki-style story format quirk


Status: offline

Dan Stoner

Forum User
Chatty
Registered: 01/28/09
Posts: 43
Location:Gainesville, FL
If I save a story Intro or Body containing this text:

Text Formatted Code

<code>

<match key="system.hardware.product" string="AO751h">
   <merge key="power_management.quirk.dpms_on" type="bool">true</merge>
   <merge key="power_management.quirk.vbemode_restore" type="bool">true</merge>
   <merge key="power_management.quirk.vbestate_restore" type="bool">true</merge>
 </match>
 
</code>
 



I end up with this after submission:

Text Formatted Code

<code>


   true
   true
   true
 
 
</code>
 



My "code" text is being touched and filtered.

Is there a way to put this kind of XML-like code into a story body?
 Quote

Status: offline

Dan Stoner

Forum User
Chatty
Registered: 01/28/09
Posts: 43
Location:Gainesville, FL
I guess I should say that my goal is to have the code displayed in a monotype font at the very least since I will have more story text above and below the code.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The text is run through Geeklog's HTML filter. Which of course doesn't work with XML.

Use Geeklog's built-in [ code ] tag instead of the HTML <code> tag.

bye, Dirk
 Quote

Status: offline

Dan Stoner

Forum User
Chatty
Registered: 01/28/09
Posts: 43
Location:Gainesville, FL
The built-in [ code ] tag is supposed to work with wiki-style format?

When I surround the XML with the GL code tag and save the story, the code tags get subsituted with:

Text Formatted Code
<pre><code>


And these new tags show up in the published story text (instead of actually turning the text into monotype font, etc.).
 Quote

Status: offline

Dan Stoner

Forum User
Chatty
Registered: 01/28/09
Posts: 43
Location:Gainesville, FL
Sorry I guess I left out the part about the wiki-style format the first time... I was working on a longer post with some other issues and left that part out when I posted the shorter question.
 Quote

All times are EST. The time is now 02:07 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content