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

How to download and manually install monospace extension for Chrome

Looking for a way to install monospace extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install monospace extensions manually, this article outlines two simple methods to effortlessly install monospace extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download monospace extension and manually install through Drag &Drop

If you ever need to manually install a monospace extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the monospace Extension by clicking the "Download CRX" button on the website.

Look for the monospace extension you wish to install. Go to the website and download the monospace extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for monospace extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the monospace extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download monospace extension for Chrome and install in Developer Mode

This is another method to install monospace extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the monospace extension file

Select and download the monospace extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the monospace extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your monospace extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the monospace extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install monospace extension in 2 ways. We hope this guide proves helpful.

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!!!