diff --git a/README.md b/README.md index d219f28..34b7d2c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Awfice is a collection of tiny office suite apps: * this project is only a half-joke, I actually use a few Awfice apps as quick scratchpads. * the only way to save your job is to save a HTML or send it to the printer/print to PDF. -## Text editor - 59 bytes! +## Text editor - 59 bytes! A simple rich text editor. Type whatever you want, it won't be saved anywhere, but it might be convenient for quick throwaway notes. You should be able to use Ctrl+B and Ctrl+I to mark text selection as bold or italic. Undo/redo should work as well. You can also copy/paste text and images from other sources. @@ -69,8 +69,20 @@ data:text/html,
'"> +``` + +[Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/code.html) + ## Contributions The code is distributed under MIT license. PRs are always welcome, especially if they fix something or make the code smaller, or add features that are valuable, but do not require a lot of code. -To modify something - edit HTML files directly. There is README.sh script that re-generates the README and embeds apps code into it. +To modify something - edit HTML files directly. There is README.sh script that re-generates the README and embeds apps code into it. \ No newline at end of file diff --git a/README.sh b/README.sh index 715387e..8f70a49 100755 --- a/README.sh +++ b/README.sh @@ -71,6 +71,18 @@ data:text/html,$(cat beam.html) [Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/beam.html) +## Code editor - $(wc -c < code.html) bytes! + +A simple code editor. You can type in HTML, CSS & Javascript. + +Copy and add to bookmarks or open in the URL bar: + +\`\`\`html +data:text/html,$(cat code.html) +\`\`\` + +[Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/code.html) + ## Contributions The code is distributed under MIT license. PRs are always welcome, especially if they fix something or make the code smaller, or add features that are valuable, but do not require a lot of code. diff --git a/code.html b/code.html new file mode 100644 index 0000000..dcea9ff --- /dev/null +++ b/code.html @@ -0,0 +1 @@ + \ No newline at end of file