Jump to content

Nexus ruins text with XML tags


iCat42

Recommended Posts

I've been trying to write XML tags in comments. To explain how to mod stuff. But Nexus automatically changes XML tags in comments, and then hides them. So when I try to edit comment, to make Nexus display everything, I not just have to remove < and > characters, but also undo automatic Nexus' changes. Thought this was temporary issue, but it is still not fixed for a month.

Link to comment
Share on other sites

Use the code tag wrapper around your XML code. This should prevent any hiding or erasure.

 

For example, the following is a snippet from a random XML found within one of my games.

    <Video>
      <Fullscreen>True</Fullscreen>
      <Resolution>1920x1080 (60)</Resolution>
      <VSyncCount>1</VSyncCount>
      <RefreshRate>60</RefreshRate>
      <QualityLevel>Good</QualityLevel>
      <TargetFrameRate>100</TargetFrameRate>
    </Video>

Mod comment pages may need to have the code tag manually typed as opposed to using the blue angle brackets icon on the forum side.

Link to comment
Share on other sites

Nah. Manually typing <code>...</code> creates code block, but does not prevent automatic editing and hiding of inner tags. Also, if I write <code>...<code>, whole remaining page becomes "codified" and broken.

Link to comment
Share on other sites

Actually it should be square brackets ... [code*] then your HTML text of script code or whateever and then close with [/code*] (but without the asterix I had to use so you could see the code block).

Link to comment
Share on other sites

Oh. Alright. I tried to [code*] This text is visible <ability name="Mutation6" comment="this one is not visible"> [/code*] (but without the asterix). But inner XML tags are still being autoedited and hidden.

Link to comment
Share on other sites

I performed a quick test on one of your mod's comment pages. The XML code does indeed get hidden on the mod comment page side. However, when going to the forum side, everything appears as it should. Unsure if there is a solution to this issue. Site staff will need to weigh in on this.

Link to comment
Share on other sites

I can confirm that on the website side anything enclosed in < and > will not render correctly, even if placed in a code block.

 

I will raise this internally, but I am fairly sure this won't be fixed in the current comment system. I've tested this same scenario in the new comment system (currently WIP and used in Collections) where the issue does not occur.

 

Best workaround for now is to post the XML on somewhere like GitHub Gist/PasteBin and link to it. Or point them to the forum version of the comment by clicking on the date on the post. Neither of those are particularly elegant but as I can't give you an ETA on a fix or mods starting to use the new comment feature it might be best to explore those options.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...