View HTML code from Frame or Dialog

You are currently viewing View HTML code from Frame or Dialog

MapTool framework developers often use HTML frames and dialogs for character sheets and other interactive displays utilizing the frame() and dialog() macro functions. However, it has often been challenging to see the actual HTML code generated by MapTool.

Phergus discovered that Ctl-A, Ctl-C in a MapTool Frame or Dialog will copy the HTML code behind the window. You can then paste the code into an HTML friendly editor like Notepad++. To get the HTML code into Notepad++ you will have to use Edit -> Paste Special -> Paste HTML as the clipboard will have both plain text as well as HTML on it. Other editors may have similar requirements.

Below is an example character sheet from a Savage Worlds framework.

Clicking on the window and doing a Ctl-A selects all the text within the window.

Clt-C will copy the selected text to your computer’s clipboard. Now navigate to the Online HTML5 Editor and paste your clipboard there.

You can now diagnose the problems with your HTML form in a nice visual format.

You can download available versions of MapTool from GitHub.

All users running versions prior to 1.8.3 are strongly encouraged to update. See this announcement post on our forum.

A JAR file version may be downloaded as well but is only recommended for developers or other advanced users.

Mac Users are encouraged to use the PKG version of the install. Windows users are encouraged to use the MSI.

If you need interactive help, please join our Discord Server. Or visit our wiki for complete walk-throughs of how to use the tool. Our Community page has more links; see the toolbar at the top of the page.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.