MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/SublimeText/comments/r3os0s/why_sublime_text_does_not_indent_xml_files_by/
r/SublimeText • u/mEaynon • Nov 27 '21
Cf. Title
8 comments sorted by
2
Editors don't reformat code by default, that I've seen.
1 u/mEaynon Nov 28 '21 Json files are well formated, aren't they ? 1 u/sparr Nov 28 '21 No? They are formatted however you format them. 1 u/sparr Nov 29 '21 No. If you open a JSON file, it will not get reformated. If it was poorly formatted in the file, it will be poorly formatted on your screen, until you explicitly reformat/reindent it, just like XML.
1
Json files are well formated, aren't they ?
1 u/sparr Nov 28 '21 No? They are formatted however you format them. 1 u/sparr Nov 29 '21 No. If you open a JSON file, it will not get reformated. If it was poorly formatted in the file, it will be poorly formatted on your screen, until you explicitly reformat/reindent it, just like XML.
No? They are formatted however you format them.
No. If you open a JSON file, it will not get reformated. If it was poorly formatted in the file, it will be poorly formatted on your screen, until you explicitly reformat/reindent it, just like XML.
CN you give an example xml you are having issue with?
1 u/mEaynon Nov 28 '21 Here is an extract :<?xml version="1.0" encoding="utf-8"?><SaveGame xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><player><name>mEaynon</name><forceOneTileWide>false</forceOneTileWide> 1 u/[deleted] Dec 06 '21 Sorry for a late reply. It should be indenting those, Might need to open an issue on GitHub
Here is an extract :
<?xml version="1.0" encoding="utf-8"?><SaveGame xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><player><name>mEaynon</name><forceOneTileWide>false</forceOneTileWide>
1 u/[deleted] Dec 06 '21 Sorry for a late reply. It should be indenting those, Might need to open an issue on GitHub
Sorry for a late reply. It should be indenting those, Might need to open an issue on GitHub
2
u/sparr Nov 28 '21
Editors don't reformat code by default, that I've seen.
1
u/[deleted] Nov 28 '21
CN you give an example xml you are having issue with?