Live editing text and HTML content of the page with the Sublime Text from the page context or DevTools.

Latest Version

Version
0.2.4
Update
November 22, 2023
Size
190KiB
Developer
Category
Users
10,000+
Rating
3.74359 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
Storage
ActiveTab
NativeMessaging
Notifications
ContextMenus
Scripting
See more

Edit with Sublime Text™ Extension

This extension facilitates editing of HTML node element's content within the popular Sublime Text editor, providing real-time updates upon saving the generated temporary file. Additionally, it enables external editing of \"TEXTAREA,\" \"INPUT[type=search],\" and \"INPUT[type=text]\" elements.

There are three methods for sending content to the Sublime Editor:

1. Activate the simple inspector using the action button, click on the HTML node, and press the ESC key to cancel the operation if needed.
2. Use the DevTools \"Elements\" panel, where a new sub-pane is added. Select \"Edit as HTML,\" choose an HTML node, and press the button to open the content in the Sublime Text editor.
3. Right-click on a \"TEXTAREA\" or \"INPUT[type=text]\" element and use the context menu item.

This extension supports simultaneous editing of multiple nodes. Each editor has its unique temporary text file, and saving updates the content of the respective node. These files are stored in the operating system's temporary directory with random filenames.

Additionally, the extension allows the DevTools panel to convert an external script or CSS resource to an internal equivalent. This functionality enables sending the content of remote resources to the external editor.

File extensions used for temporary resource creation:
1. HTML -> when innerHTML or outerHTML content is sent to the external editor.
2. JS -> when editing an inline script.
3. TXT -> when editing an editable area.

--- Legal
\"Sublime Text\" is a trademark of Sublime HQ Pty Ltd, registered in the U.S. and other countries. This extension is an independent project with no affiliation to the mentioned product.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Edit with Sublime Text\u2122", "description": "__MSG_description__", "version": "0.2.4", "default_locale": "en", "manifest_version": 3, "permissions": [ "storage", "activeTab", "nativeMessaging", "notifications", "contextMenus", "scripting" ], "optional_permissions": [ "downloads" ], "optional_host_permissions": [ "*://*/*" ], "background": { "service_worker": "worker.js" }, "offline_enabled": true, "action": {}, "options_ui": { "page": "/data/options/index.html" }, "icons": { "16": "/data/icons/16.png", "32": "/data/icons/32.png", "48": "/data/icons/48.png", "64": "/data/icons/64.png", "128": "/data/icons/128.png", "256": "/data/icons/256.png", "512": "/data/icons/512.png" }, "homepage_url": "https://webextension.org/listing/edit-as-html.html?from=sublime", "commands": { "_execute_action": {} }, "web_accessible_resources": [{ "resources": ["/data/native/index.html"], "matches": ["*://*/*"] }]}
Read more