Edit as HTML Edit HTML content of a node with an external editor
Support Development
PayPal ● 
Bitcoin Address: bc1qh7juzrxrawpr65elm4qs285m5rdhnhgsn7h2jf
 ● 
Lightning Address: [email protected]
Your Input Matters
Review
Advertisement
Screenshot
The "Edit as HTML" extension connects your browser with an external editor such as Sublime Text or Notepad++. You can access the extension either through the action button or from the developer tools (this feature might not be available for some extensions). Use the action button to choose an HTML node and modify its content within your preferred external editor. For more in-depth inspection, use your browser's default inspector (a DevTools interface) and navigate to the "Edit as HTML" sidebar pane added to the elements panel. Refer to the tutorial video for examples, and check the screenshot to identify the button's location.

Features

FAQs

  1. What is the "Edit as HTML" extension and how does it work?

    This extension connects your browser to an external editor, allowing you to edit the content of an HTML node within your preferred external editor. You can observe the results in the browser in real-time without refreshing the page. The extension monitors file changes, automatically updating the node content when the temporary file content is modified. This way, you can leverage your favorite external editor instead of relying on the developer tool as an HTML editor.

    Available extensions:

    There are two ways to activate the extension:

    • Click on the action button, hover your mouse over the element you wish to edit, and then left-click on the element. This action opens your external editor with a temporary file containing the node's content. As this local file gets updated, the new content replaces the old one in the browser, making the changes visible.
    • Open your browser's developer tools, navigate to the "Elements" tab, and locate a new side pane titled "Edit as HTML" in the Elements panel. When a node element is selected, click the edit button, and the content will be transmitted to the external editor as a temporary file. This option is not active for all extensions.

    Video Tutorials:

  2. Is it possible to modify the command sent to the external editor, and if so, what is the default command?

    By default, the command sends the path to a temporary file containing the content of the currently selected node to the text editor. You can customize this command according to your preferences by visiting the options page. If you believe your modification could benefit other users, please consider sharing it in the review section on this page!

  3. Why does the HTML code sent to the editor lack the formatting seen in the dev tools?

    The HTML code sent to the editor is a direct representation of the actual code on the server before the browser parses it. DevTools in browsers format (prettify) the HTML code for readability. If you wish to format the HTML code in your editor to match, you may need to install an extension for this purpose.

  4. What's new in this version?

    Please check the Logs section.

  5. Is it possible to use this extension for composing an entire HTML document, rather than just for a node?

    You can achieve this by opening the external editor and creating a basic HTML code. Open the HTML file with your browser, use the dev tools to select either the HTML or BODY element, then click "Edit as HTML." The content will be transferred to your external editor, and any modifications made will be sent back to the browser without requiring a page refresh.

  6. Is it necessary to manually delete the temporary files generated during the editing of HTML nodes?

    No, manual deletion of these files is unnecessary. They are stored in the operating system's temporary directory, which is automatically cleared periodically.

  7. Can I use this extension to edit a writable area, such as a textarea element or input[type=text]?

    This extension introduces a new context menu item for editable elements. You can use this option to transfer the content of an editable element to the external editor. Similar to HTML editing, the content is sent back upon saving by the external editor. It's important to note that this extension employs TXT format when modifying the content of an editable element.

  8. Is it possible to use this extension for editing external resources?

    If your browser supports DevTools integration, you will find a button in the panel labeled "Convert to Local Resource." This option is available for SCRIPT and LINK[type=text/css] elements. When activated, the extension retrieves the remote content and creates a new same-type element with the remote content. Subsequently, the remote resource is removed. You can select the newly created element from the inspection panel and edit it using the external editor as usual.

Matched Content

Preview

Reviews

Please keep reviews clean, avoid improper language, and do not post any personal information. Also, please consider sharing your valuable input on the official store.

What's new in this version

Version--
Published--/--/--
Change Logs:
    Last 10 commits on GitHub
    Hover over a node to see more details

    Need help?

    If you have questions about the extension, or ideas on how to improve it, please post them on the  support site. Don't forget to search through the bug reports first as most likely your question/bug report has already been reported or there is a workaround posted for it.

    Open IssuesIssuesForks

    Recent Blog Posts