The XML Editor project provides a user-friendly interface for creating and editing XML documents. It leverages the CodeMirror library for syntax highlighting and offers additional features for managing XML files. The editor supports loading sample files, creating new follow-ups, moving follow-ups, and saving the edited content.
index.html
: The main HTML file containing the structure of the editor interface.styles.css
: The stylesheet with global styling for the entire page.editor.js
: JavaScript file responsible for initializing the XML editor and handling file operations.No internet connection is required for dependencies, as Codemirror has been removed from npm. Instead, the necessary files are included in the project:
codemirror/brace-fold.min.js
codemirror/codemirror.min.css
codemirror/codemirror.min.js
codemirror/dracula.min.css
codemirror/foldcode.min.js
codemirror/foldgutter.min.css
codemirror/foldgutter.min.js
codemirror/xml-fold.min.js
codemirror/xml.min.js
📦xml-editor ┣ 📂.git ┣ 📜editor.js ┣ 📜index.html ┣ 📜package-lock.json ┣ 📜package.json ┣ 📜README.md ┣ 📜sample.xml ┣ 📂codemirror ┃ ┣ 📜brace-fold.min.js ┃ ┣ 📜codemirror.min.css ┃ ┣ 📜codemirror.min.js ┃ ┣ 📜dracula.min.css ┃ ┣ 📜foldcode.min.js ┃ ┣ 📜foldgutter.min.css ┃ ┣ 📜foldgutter.min.js ┃ ┣ 📜xml-fold.min.js ┃ ┗ 📜xml.min.js ┗ 📜styles.css
To use the XML Editor locally, follow these steps:
Clone the Repository:
git clone https://github.com/MariferVL/xml-editor.git
Navigate to the Project Directory:
cd xml-editor
Open the Editor:
index.html
in your preferred web browser.Feel free to contribute to the project by submitting issues or pull requests on Github.
This project is licensed under the MIT License - see the LICENSE file for details.