LilBudyWizer
Warlord
- Joined
- Nov 11, 2014
- Messages
- 173
HTML Formatter
I found this website that will reformat HTML into a more readable form. A lot of modding involves using Document Object Model (DOM). When you see a script refer to document that's DOM. You can pull the HTML for the entire window or just an element. When you do it has no line breaks nor indentation. I find looking at the HTML makes DOM a lot easier. That is when it's formatted. It's not exactly easy to read formatted, there's a whole lot of divs, but it's certainly easier with line breaks and indentation. You just paste your HTML in the box, click Format HTML and then Copy Code. You can get the HTML out of the game with:
That would be the entire document. Generally you're going to work with a smaller portion than that, but it's the starting point for figure out how to find the part you want.
Edit: There's also Free Formatter. It does some other file types, conversion and has a few more options.
I found this website that will reformat HTML into a more readable form. A lot of modding involves using Document Object Model (DOM). When you see a script refer to document that's DOM. You can pull the HTML for the entire window or just an element. When you do it has no line breaks nor indentation. I find looking at the HTML makes DOM a lot easier. That is when it's formatted. It's not exactly easy to read formatted, there's a whole lot of divs, but it's certainly easier with line breaks and indentation. You just paste your HTML in the box, click Format HTML and then Copy Code. You can get the HTML out of the game with:
JavaScript:
UI.setClipboardText(document.documentElement.outerHTML);
Edit: There's also Free Formatter. It does some other file types, conversion and has a few more options.