GithubHelp home page GithubHelp logo

dlemas / markdown-keyboard-shortcuts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thomasleigh/markdown-keyboard-shortcuts

0.0 0.0 0.0 20 KB

Text formatting keyboard shortcuts for Markdown via Autohotkey.

License: GNU General Public License v3.0

AutoHotkey 100.00%

markdown-keyboard-shortcuts's Introduction

Markdown Keyboard Shortcuts.

Description.

This is an essential handful of text-formatting keyboard shortcuts for Markdown, working thanks to AutoHotkey ^(the ultimate automation scripting language for Windows)^ .

Shortcuts:

It covers:

  • CTRL+B - bold the font,
  • CTRL+I - italicize,
  • CTRL+1 - bold & italicize,
  • CTRL+U - underline (through a CSS hack - see the explanation below),
  • CTRL+SHIFT+= - insert ^a superscript^,
  • CTRL+K - insert a reference-style hyperlink into a selected text;

Text underlining via a CSS hack.

Since Markdown doesn't support text underlining, I've decided to use the following CSS hack described by its author here - You need to add this CSS code to Your CSS spreadsheet:

strong>em,
em>strong,
b>i,
i>b
{
	font-style:normal;
	font-weight:normal;
	text-decoration:underline;
}

The appealing thing here is that the Markdown-style **_underlined text_** looks better and more intuitive than classic HTML-powered <u>underlined text</u>. Unfortunately things get complicated if You'd like the text to be bold or italicized in the same time :( . Maybe I'll write some jQuery workaround for this.

How Markdown improved My workflow?

In case You would be interested to learn about My personal impressions on Markdown, and especially how it influenced My workflow - I encourage You to read this article, within which I also describe other things which significantly improved My work as a feature-writer or a programmer.

Contact.

In case You'd have any questions or thoughts on how it could be improved, You are welcome to reach Me at [email protected] .

History.

  • ver. 0.1 - June 11, 2019;

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.