A simple and lightweight solution to the WorkFlowy code dilemma.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
.gitignore
.gitmodules
LICENSE
README.md
after_WCF__1.jpg
after_WCF__2.jpg
before_WCF__1.jpg
before_WCF__2.jpg
manifest.json
wcf_icon.png
wcf_largeTile.png
wcf_marquee.png
wcf_smallTile.png
workflowyCodeFormatter.js

README.md

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
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> ===

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.

Now with syntax highlighting!

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. If no language is specified, JavaScript ('js') will be used.

To specify a language, just add the shorthand name of the language like so:

  ```rust

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.

Available languages are:


STANDARD:

bsh
c
cc
cpp
cs
csh
cyc
cv
htm
html
java
js
m
mxml
perl
pl
pm
py
rb
sh
xhtml
xml
xsl

EXTENDED:

css
dart
erlang
go
hs
lua
r
rust
sql
wiki

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 Google's Code Prettify for the syntax highlighting.

Thanks to Corri Blair for the awesome graphics!

This extension also uses (as a submod):

https://github.com/ryanpcmcquen/codeFormatter