diff --git a/README.md b/README.md index c8a9791..8187df9 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,12 @@ WebBox is an interactive code editor focused on web development, providing live --- -* [Create a File](./docs/CreateFile.md) -* [Open a File](./docs/OpenFile.md) -* [Save a File](./docs/SaveFile.md) -* [Viewer Windows](./docs/ViewerWindows.md) -* [Shortcuts](./docs/Shortcuts.md) -* [Customize Colors](./docs/CustomColors.md) +- [Create a File](./docs/CreateFile.md) +- [Open a File](./docs/OpenFile.md) +- [Save a File](./docs/SaveFile.md) +- [Viewer Windows](./docs/ViewerWindows.md) +- [Shortcuts](./docs/Shortcuts.md) +- [Customize Colors](./docs/CustomColors.md) --- @@ -24,4 +24,5 @@ Developed as a school project by **Ethan Mahlstedt** Want to help? Send me a [mail](mailto:ethan.mahlstedt@hotmail.com) --- -

Last modified at 13/05/25 by Ethan Mahlstedt; v1.0.0-rc2

\ No newline at end of file + +

Last modified at 13/05/25 by Ethan Mahlstedt; v1.0.0-rc2

diff --git a/docs/CreateFile.md b/docs/CreateFile.md index 37cf08a..f60d4be 100644 --- a/docs/CreateFile.md +++ b/docs/CreateFile.md @@ -20,9 +20,8 @@ Filename **must** include extension. --- - Filename and folder **are mandatory**. --- -

Last modified at 12/05/25 by Ethan Mahlstedt; v1.0-rc1

\ No newline at end of file +

Last modified at 12/05/25 by Ethan Mahlstedt; v1.0-rc1

diff --git a/docs/CustomColors.md b/docs/CustomColors.md index 52ce308..b56b79b 100644 --- a/docs/CustomColors.md +++ b/docs/CustomColors.md @@ -14,4 +14,4 @@ If you want to use custom colors, you must edit the files located at `editor/fro --- -

Last modified at 14/05/25 by Ethan Mahlstedt; v1.0-rc2

\ No newline at end of file +

Last modified at 14/05/25 by Ethan Mahlstedt; v1.0-rc2

diff --git a/docs/OpenFile.md b/docs/OpenFile.md index 29d1d4b..3d70b39 100644 --- a/docs/OpenFile.md +++ b/docs/OpenFile.md @@ -10,18 +10,16 @@ To open files, WebBox will prompt you to choose a file that matches the following file types: -* **HTML** (.html, .htm) -* **JavaScript** (.js, .jsx, .mjs, .cjs) -* **TypeScript** (.ts, .tsx) -* **CSS** (.css) -* **JSON** (.JSON) -* **Markdown** (.md) -* **PHP** (.php) -* **Text Documents** (.txt) -* **XML** (.xml) - - +- **HTML** (.html, .htm) +- **JavaScript** (.js, .jsx, .mjs, .cjs) +- **TypeScript** (.ts, .tsx) +- **CSS** (.css) +- **JSON** (.JSON) +- **Markdown** (.md) +- **PHP** (.php) +- **Text Documents** (.txt) +- **XML** (.xml) --- -

Last modified at 14/05/25 by Ethan Mahlstedt; v1.0-rc2

\ No newline at end of file +

Last modified at 14/05/25 by Ethan Mahlstedt; v1.0-rc2

diff --git a/docs/SaveFile.md b/docs/SaveFile.md index 20ae6f6..a374f57 100644 --- a/docs/SaveFile.md +++ b/docs/SaveFile.md @@ -1,4 +1,3 @@ - ###### Go back to [index](../README.md) --- @@ -13,8 +12,8 @@ When closing files, WebBox will prompt you to save the file if it has unsaved ch ![fileSaveDialog.png](../resources/docs/fileSaving/fileSaveDialog.png) -Whenever a file has unsaved changes, the file name will be displayed in *italic* in the tab bar. This is a visual indicator that the file has unsaved changes. +Whenever a file has unsaved changes, the file name will be displayed in _italic_ in the tab bar. This is a visual indicator that the file has unsaved changes. --- -

Last modified at 14/05/25 by Ethan Mahlstedt; v1.0-rc2

\ No newline at end of file +

Last modified at 14/05/25 by Ethan Mahlstedt; v1.0-rc2

diff --git a/docs/Shortcuts.md b/docs/Shortcuts.md index 54e69eb..2a0ad91 100644 --- a/docs/Shortcuts.md +++ b/docs/Shortcuts.md @@ -9,7 +9,7 @@ ## Shortcut list | Shortcut | Action | -|--------------------|-------------------------------------| +| ------------------ | ----------------------------------- | | `Ctrl + N` | Create File | | `Ctrl + O` | Open File | | `Ctrl + S` | Save File | @@ -20,4 +20,4 @@ --- -

Last modified at 14/05/25 by Ethan Mahlstedt; v1.0-rc2

\ No newline at end of file +

Last modified at 14/05/25 by Ethan Mahlstedt; v1.0-rc2

diff --git a/docs/ViewerWindows.md b/docs/ViewerWindows.md index 6b4b35d..92b0d39 100644 --- a/docs/ViewerWindows.md +++ b/docs/ViewerWindows.md @@ -1,4 +1,3 @@ - ###### Go back to [index](../README.md) --- @@ -19,4 +18,4 @@ In the case you want to refresh the viewer, you can use the **"Refresh Viewer"** --- -

Last modified at 14/05/25 by Ethan Mahlstedt; v1.0-rc2

\ No newline at end of file +

Last modified at 14/05/25 by Ethan Mahlstedt; v1.0-rc2

diff --git a/front/editor/editor.html b/front/editor/editor.html index e6daccd..10c1c51 100644 --- a/front/editor/editor.html +++ b/front/editor/editor.html @@ -4,7 +4,6 @@ WebBox -
diff --git a/front/editor/editor.js b/front/editor/editor.js index b19d4dd..1cfbb50 100644 --- a/front/editor/editor.js +++ b/front/editor/editor.js @@ -845,15 +845,26 @@ pickWindowBtn.addEventListener("click", () => { }); ////////////////////////////////////////////////////////// -// Load Highlighter +// Load Stylesheets ///////////////////////////////////////////////////////// -const cssPath = path.join(process.cwd(), "front", "editor", "highlighter.css"); - -const link = document.createElement("link"); -link.rel = "stylesheet"; -link.href = `file://${cssPath}`; -document.head.appendChild(link); +const HighlighterPath = path.join( + process.cwd(), + "front", + "editor", + "highlighter.css" +); +const EditorPath = path.join(process.cwd(), "front", "editor", "editor.css"); + +appendStylesheet(HighlighterPath); +appendStylesheet(EditorPath); + +function appendStylesheet(dir) { + const link = document.createElement("link"); + link.rel = "stylesheet"; + link.href = `file://${dir}`; + document.head.appendChild(link); +} ////////////////////////////////////////////////////////// // Handle Window Deletion diff --git a/package-lock.json b/package-lock.json index d0a2b68..051a573 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "webbox", - "version": "1.0.0-rc2", + "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "webbox", - "version": "1.0.0-rc2", + "version": "1.0.0", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index 5d38c22..eac91fe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webbox", - "version": "1.0.0-rc2", + "version": "1.0.0", "description": "Live Editor for HTML, CSS and JS", "main": "main.js", "scripts": {