GithubHelp home page GithubHelp logo

karmaral / workflowycodeformatter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryanpcmcquen/workflowycodeformatter

0.0 1.0 0.0 7.54 MB

:hourglass_flowing_sand: A simple and lightweight solution to the WorkFlowy code dilemma. | https://addons.mozilla.org/en-US/firefox/addon/workflowy-code-formatter/ | https://chrome.google.com/webstore/detail/workflowy-code-formatter/kglihipcanlbglgikjghocmbbbbkfemn

License: Mozilla Public License 2.0

JavaScript 93.89% Batchfile 6.11%

workflowycodeformatter's Introduction

workflowyCodeFormatter

A simple and lightweight solution to the WorkFlowy code dilemma.

WCF Marquee

One user said:


@ryanpcmcquen @WorkFlowy Nice and light. Very WorkFlowian.

โ€” J Rawlins (@jprawlins) November 15, 2015

What happened to syntax highlighting?

If you've been a user for a while, you may remember that this extension supported language specific syntax highlighting at one time. Unfortunately, both the Chrome and Firefox extension reviews have become more stringent over time, and even though I was using a reputable open source syntax highlighting library (https://github.com/googlearchive/code-prettify), I was constantly getting rejections or would randomly have the extension unpublished because some file in that library was flagged as nefarious. For that reason, I've switched to Microlight (https://asvd.github.io/microlight/). Now the syntax highlighting is language and theme agnostic, and baked right into the codeFormatter library (https://github.com/ryanpcmcquen/codeFormatter).

Web store README


Make backtick wrapped text look like code! {openSource}

An open source extension to make backtick wrapped text look like code in WorkFlowy.

Unlike 'WorkFlowy for coders', this solution is lightweight, pure JavaScript, and still allows editing text in all views.

Any text wrapped in 1 or 3 backticks will be rendered as code (inspired by Markdown syntax).

Use 1 backtick for inline code, and 3 backticks to wrap multi-line code. Note that the 3 backticks MUST be on their own line.

Note that extensions do not work inside of Chrome apps, so if you are using the WorkFlowy 'app', this extension will not be running. This is a limitation of Chrome apps and extensions.

Enjoy!

https://github.com/ryanpcmcquen/workflowyCodeFormatter


Web store link:

https://chrome.google.com/webstore/detail/workflowy-code-formatter/kglihipcanlbglgikjghocmbbbbkfemn


Before WCF 1

After WCF 1

Before WCF 2

After WCF 2

If you don't already have a WorkFlowy account, please consider using my referral link (we'll both get bonus free space)! ๐ŸŽ‰


Thanks to Corri Blair for the awesome graphics!

This extension also uses (as a submod):

https://github.com/ryanpcmcquen/codeFormatter

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.