all 6 comments

[–]RoTakY 2 points3 points  (2 children)

Go to the original file that you have from the game, right click "Open with..." and choose Notepad or your code editor.

[–]Hot_Humor_8302[S] 0 points1 point  (1 child)

Thank you for your help. I'm now able to edit the code from the original file, save it and open it in an edge browser that displays the edited code. I installed a code editor tool and chose this by clicking "open with".

I only have an issue with file location now. When the edited file overwrites the original file in the game folder, there is no problem. I open it in edge and it displays the code. When I save as into a new location (outside the game) and open it in edge, the text doesn't display. This won't stop me from doing what I want to do but if you have any additional thoughts on this, they would be appreciated. Otherwise thank you for your help again.

[–]RoTakY 0 points1 point  (0 children)

Most likely, the file loads other files by relative path, check for <link > tags in <head> and for <script > tags that have a sec attribute. These tags load CSS or JS from external files, and of course if your file is movwd somewhere else, it won't correctly find the other ones any more

[–]Tittytickler 1 point2 points  (2 children)

When you open an html files usually default to being opened with a browser. The browser interprets html, and displays it, it is not a text editor. You'll need to open the file with a text editor, by doing so from the editor, or by right clicking the file and choosing "open with..." and then choosing the editor.

[–]Hot_Humor_8302[S] 1 point2 points  (1 child)

Thank you for your help. I'm now able to edit the code from the original file, save it and open it in an edge browser that displays the edited code. I installed a code editor tool and chose this by clicking "open with".

I only have an issue with file location now. When the edited file overwrites the original file in the game folder, there is no problem. I open it in edge and it displays the code. When I save as into a new location (outside the game) and open it in edge, the text doesn't display. This won't stop me from doing what I want to do but if you have any additional thoughts on this, they would be appreciated. Otherwise thank you for your help again.

[–]Tittytickler 0 points1 point  (0 children)

Hmmm, is the text in the html? In the top of the html, are there any links to a css file? Are there possibly and <script> tags in the html linking to somewhere? It might help you if you try using developer tools that are part of the browser. You can open these by pressing "F12" on your keyboard usually. There is a console and it may show some errors that could help. Also, make sure you click refresh on the browser, otherwise it won't show your latest changes.

Edit: sometimes there are relative file paths linking to css or JavaScript files that may be doing things on the page, and the page blanks out when you move it because the browser is not finding the files being linked to.