Code editor
Edit a site's text and script files
Open a text or script file from a SharePoint site in a code editor with colouring for its type, change it, and save it straight back. Scriptable files such as .aspx are saved by turning custom scripts on for the site only for the save, after you agree.
Makes changes. Save overwrites the file in SharePoint; a library that keeps versions keeps the old one as a version. For .aspx and similar files it turns custom scripts on for the site, saves, then turns them back off, after you agree.
What does it do?
- How to fix a page, script, stylesheet or config file in a site without downloading and uploading it.
- Whether a file can be saved when the site blocks custom scripts.
- Whether the site was put back the way it was after a save.
How it runs
- Open the file. In SharePoint Explorer, right-click a file and choose Edit code. In Tenant Explorer, select the file and choose Edit code. The editor opens in its own window, so you can keep browsing.
- Edit. The bar shows the language, the encoding, and an Unsaved mark once you change something.
- Save. Save, or Ctrl+S, writes the file back in the same encoding. If the file was replaced or deleted since you opened it, the save is refused and you are asked to reload.
- Scriptable files. For .aspx, .master and similar files on a site that blocks custom scripts, you are asked first. Yes turns custom scripts on, saves, then turns them back off. No keeps your edits in the editor.
- Reload or view. Reload discards your changes and reads the file again. Open in browser shows the file in SharePoint.
What do you need?
- Write access to the file. Any sign-in opens and saves an ordinary text file.
- For a scriptable file on a site that blocks custom scripts: your own sign-in as a SharePoint administrator. A certificate cannot change that setting.
- Every plan.
What will it not do?
- Text files up to 5 MB only, such as .aspx, .html, .js, .css, .json, .xml, .txt and .ps1.
- If custom scripts cannot be turned back off, the editor says so and will not close until you try again or choose to leave them on.
- If ShareMaster stops in the middle of a save, the next time you connect it offers to turn custom scripts back off on that site, or to leave them on.
- Closing with unsaved changes asks first. Edits are not kept anywhere once you close.