iCat42 Posted April 18, 2023 Share Posted April 18, 2023 <this_is_supposed_to_be_XML_tag_but_Nexus_changes_it_and_hides it> Link to comment Share on other sites More sharing options...
showler Posted April 18, 2023 Share Posted April 18, 2023 What the heck are you talking about? Link to comment Share on other sites More sharing options...
iCat42 Posted April 18, 2023 Author Share Posted April 18, 2023 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 More sharing options...
IsharaMeradin Posted April 18, 2023 Share Posted April 18, 2023 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 More sharing options...
iCat42 Posted April 18, 2023 Author Share Posted April 18, 2023 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 More sharing options...
Striker879 Posted April 18, 2023 Share Posted April 18, 2023 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 More sharing options...
iCat42 Posted April 18, 2023 Author Share Posted April 18, 2023 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 More sharing options...
IsharaMeradin Posted April 18, 2023 Share Posted April 18, 2023 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 More sharing options...
Pickysaurus Posted April 19, 2023 Share Posted April 19, 2023 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 More sharing options...
iCat42 Posted April 20, 2023 Author Share Posted April 20, 2023 Noticed this was fixed. Can even write XML tags without code block now. Thank you all. Link to comment Share on other sites More sharing options...
Recommended Posts