Feb 11, 2013

Use your browser as TEXT Editor


If you suddenly want to write something without text editor on your device, try to use WebKit-based browsers: Chrome, Firefox, and Safari.

In the URL line, input:

  • "data:text/html, <html contenteditable>", then you can edit texts on the page presentation area.
However, the above command make the text area as HTML default, that is copying html strings will be pasted as HTML format. If you want a "pure text" (plain text) editor, use the command.
  • data:text/html, <textarea></textarea>
The input area is too small! Don't forget write CSS style as you are a good web programmer.
  • data:text/html, <textarea style='height:90%;width:90%;margin:auto'></textarea>
Now, enjoy your "Programmer-Style" text editor.

I am glad to be a programmer!

NOTE: the edited text can not be saved!

No comments :

Post a Comment