A fully client-side plain text editor in the browser.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci
.travis.yml
CNAME
README.md
htmlhint.conf
index.xhtml

README.md

Travis Circle

Browserpad

An open-source, browser-based plain text editor built entirely with HTML, CSS and JavaScript:

http://browserpad.org

Browserpad will always be a plaintext editor: no markdown/html preview, no WYSIWIG, no rich text editing. Think a browser-based notepad with a few extra text manipulation features. The aim of this guiding principle is to prevent feature creep and keep the tool focused, the Unix way: do one thing, and do it well.

Origins / inspiration:

  • Browserpad started up as a very simple browser notepad entirely contained in a data URI: data:text/html,<textarea autofocus style='width:100%;height:100%;border:none;outline:none'/> (try copying and pasting that to your browser address bar and pressing enter). This concept was originally decribed by @jjperezaguinaga on his 4 Dec 2012 post "One line browser notepad".
  • The data URI approach was neat, but impractical, and was eventually abandoned in favor of the regular html file approach.
  • Browserpad is heavily inspired by the existing (but proprietary) online plaintext editors:
  • In terms of features, Browserpad aims to match most of the text manipulation operations listed/implemented in:

Primary features:

Note: As a rule of thumb, Browserpad aims to support only editing operations that are generic and content-agnostic. This means it won't implement any context-sensitive functions that depend on the semantic meaning of the text, such as bracket matching, code linting, etc.

  • support tab key
  • auto-save using localStorage (see here)
  • show statistics (lines/words/characters)
  • indent-deindent (with Tab / Shift+Tab)
  • keep selection visible (greyed out) when unfocused (see here)
  • use contents of first line (or filename, if defined) as title (see here)
  • menu entries (menu icon: )
    • contrast (normal / night mode). (see icon here)
    • permalink / share (via data url)
    • save to a file (using the download attribute of the a element; browser support for the download attribute)
      • save as (custom filename).
    • load from a file on disk (based on this implementation)
    • show visual guide at: 0/72/80 CPL (radio buttons)
    • highlight current line
    • text operations (on whole text or selection):
      • case change (lower/upper/title)
      • search & replace
        • match highlight, emphasize current match, and cycling with F3
        • one-by-one or bulk replace
        • regex support
      • wrap-unwrap lines

Possible advanced features:

License

Browserpad is open source software released under the ISC License:

Copyright (C) 2015 Waldir Pimenta and contributors

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDERS AND CONTRIBUTORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.