Display monospaced and highlighted code blocks instantly in Chrome!

Latest Version

Version
0.1.0
Update
February 13, 2015
Size
92.37KiB
Developer
Category
Users
35
Rating
4.83333 ★
Manifest Version
2
Web Store Status
Languages Support
English (United States)
See more
Permissions
Storage
See more

monospace Extension

Monospace formats code sent through Facebook chat into monospaced, syntax-highlighted, line-numbered code blocks. Additionally monospace will highlight and add line numbers to files viewed in the chrome file viewer. Multiple highlighting themes are included and can be switched in the options menu.

To use monospace simply send code through facebook wrapped with the delimiters set in the options page.

EXAMPLES:

- ```for x in range(0:10):
print(x)```

- you can also have ```inline code```


Notes:
This is still very much a work in progress. I'm currently looking for bugs and unintended behavior. I'll remove all the console logs once I'm satisfied with its stability.

The UI is still pretty clunky since I haven't spent much time working on that. I'll revamp the options page and the chrome webstore page soon.

By default monospace uses three backticks (like markdown). Monospace will also reverse the start delimiter and use that as the end delimiters unless a custom end delimiter is specified. Pages will need to be refreshed to use the new delimiters.

If there are more than one line breaks in a row, monospace will reduce them to a single line break. This is due to limitations with how Facebook displays messages.

Removing items from the whitelist will prevent monospace from acting on that item. Currently the functionality of the whitelist is very basic.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "monospace", "version": "0.1.0", "description": "Display monospaced and highlighted code blocks instantly in Chrome!", "options_page": "options.html", "permissions": [ "storage" ],"icons": { "16": "icons/icon16.png", "48": "icons/icon48.png", "128": "icons/icon128.png" }, "web_accessible_resources": [ "app.js", "facebook/*", "highlight/highlight.pack.js", "highlight/styles/*" ], "content_scripts": [ { "matches": ["http://*.facebook.com/*", "https://*.facebook.com/*"], "css": ["main.css"], "js": ["facebook/background.js"] }, { "matches": ["*://*/*.js", "*://*/*.css", "*://*/*.py", "file:///*.js", "file:///*.css", "file:///*.py"], "css": ["main.css"], "js": ["highlight/highlight.pack.js", "app.js", "files.js"] }]}
Read more

Similar Extensions

icon

Github Markdown Outline Extension Extension · Productivity 35 5 ★ 146KiB

icon

github syntax Extension · Developer Tools 35 3 ★ 167KiB

icon

 Line Wrapper
                                                Extension · Accessibility
                                                35 4 ★ 4.98KiB
                                            

icon

DevTools Theme: Twilight Spacegray Extension · Developer Tools 35 2 ★ 30.86KiB

icon

Markdown Formatter Extension · Developer Tools 35 1 ★ 43.14KiB

icon

Markdown document renderer Extension · Accessibility 35 1 ★ 40.25KiB

icon

AceArea Extension · Developer Tools 35 6 ★ 2.17MiB

icon

Clear Code Extension · Developer Tools 35 7 ★ 1.2MiB

icon

Domquest Extension · Developer Tools 35 2 ★ 32.3KiB

icon

Text-Aid-Too Extension · Productivity 35 2 ★ 16.82KiB

icon

Fantasy Code Snippets Extension · Developer Tools 35 2 ★ 113KiB

icon

ElectricCommander Syntax Highlighting Extension · Productivity 35 13 ★ 247KiB

icon

ownsheet Extension · Developer Tools 35 2 ★ 225KiB

icon

Gmail Mono Extension · Social & Communication 35 6 ★ 213KiB

icon

Basis.js Devtools Extension · Developer Tools 35 6 ★ 13.89KiB

icon

Syntax Highlight Code Blocks Extension · Productivity 35 9 ★ 24.75KiB

icon

Sight Extension · Developer Tools 35 248 ★ 871KiB

icon

Dev extensions reload Extension · Developer Tools 35 11 ★ 14.59KiB

icon

Diff Navigator for GitHub Extension · Developer Tools 35 3 ★ 43.72KiB

icon

"View Vote totals" without 1000 rep Extension · Productivity 35 13 ★ 62.72KiB

icon

WorkFlowy code formatter Extension · Productivity 35 21 ★ 297KiB

icon

Markdown Linker Extension · Productivity 35 7 ★ 156KiB

icon

textarea to code editor Extension · Developer Tools 35 12 ★ 2.6MiB

icon

QueryjQuery Extension · Developer Tools 35 4 ★ 9.13MiB

User reviews

icon

(ID: ) Voted 5 ★ - Updated 07/27/2016 I have been looking for this extension since I was born!!! So happy!!! Thanks developer!!!