Giter Site home page Giter Site logo

markform's Introduction

Markform

A quick shorthand for creating HTML forms, inspired by Markdown.

Form elements

Element name Markform code HTML equivalent
Form start [+] <form>
Text input [_] <input type="text">
Textarea [[ ]] <textarea></textarea>
Email input [@] <input type="email">
Password input [*] <input type="password">
Number input [$] <input type="number">
Range input [%] <input type="range">
File upload [^] <input type="file">
Submit button [( )] <button type="submit"><button>
Form end [-] </form>

Example Usage

Sign up for website account

Markform:

[+]

First name  [_]
Last name  [_]
Email address  [@]
Choose a password  [*]

[(Create my account)]

[-]

Converted to HTML:

<form>
<div>
<label for="markform-text-input-first-name">First name</label>
<input id="markform-text-input-first-name" type="text">
</div>
<div>
<label for="markform-text-input-last-name">Last name</label>
<input id="markform-text-input-last-name" type="text">
</div>
<div>
<label for="markform-email-input-email-address">Email address</label>
<input id="markform-email-input-email-address" type="email">
</div>
<div>
<label for="markform-password-input-choose-a-password">Choose a password</label>
<input id="markform-password-input-choose-a-password" type="password">
</div>
<div>
<button id="markform-submit-button-create-my-account" type="submit">Create my account</button>
</div>
</form>

Upload and rescale image

Markform:

[+]

Image file to rescale  [^]
Horizontal resolution  [$]
Vertical resolution  [$]

[(Upload image)]

[-]

Converted to HTML:

<form>
<div>
<label for="markform-file-input-image-file-to-rescale">Image file to rescale</label>
<input id="markform-file-input-image-file-to-rescale" type="file">
</div>
<div>
<label for="markform-number-input-horizontal-resolution">Horizontal resolution</label>
<input id="markform-number-input-horizontal-resolution" type="number">
</div>
<div>
<label for="markform-number-input-vertical-resolution">Vertical resolution</label>
<input id="markform-number-input-vertical-resolution" type="number">
</div>
<div>
<button id="markform-submit-button-upload-image" type="submit">Upload image</button>
</div>
</form>

markform's People

Contributors

jeremykohn avatar

Stargazers

Lin Pengcheng avatar

Watchers

 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.