Code Monkey home page Code Monkey logo

browserpad's Introduction

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.

browserpad's People

Contributors

waldyrious avatar ragegamerboi avatar senadalagic avatar cushinga avatar daswordnerd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.