Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser extension to choose font and font size of code blocks on websites #97

Open
sindresorhus opened this issue Jul 6, 2017 · 8 comments

Comments

@sindresorhus
Copy link
Owner

Would be useful with a Chrome extension where you can choose your favorite font and size and have it apply to code blocks on any website. Would make reading code on the web much more enjoyable as you can read it just like you would in your editor.

@FezVrasta
Copy link

Isn't Stylish enough?

@sindresorhus
Copy link
Owner Author

You could achieve the same, sure, but it's not very user-friendly.

@fregante
Copy link

fregante commented Dec 19, 2017

I agree with @FezVrasta; too much overhead for what essentially should be:

/* @everywhere */
code, pre {
	font-family: FiraCode;
}

@benjamin-rood
Copy link

^ Just an fyi on the above styling:
The font naming of the default Fira Code font family specification in CSS styling will be Fira Code (at least on macOS, but IIRC it's true regardless), whereas any variant e.g. Light will be FiraCode-Light. This is the same for all browser-like apps such as Visual Studio Code.

@ssight
Copy link

ssight commented Oct 31, 2019

@sindresorhus @fregante I've created an extension for Chrome called CodeText and I think it does the job fairly well. You'll just have to download it from the releases section.

If anybody wants to upload it to the Chrome Web Store, feel free.

@vaibhavhrt
Copy link

@ssight sorry can't seem to find it anymore.

@ssight
Copy link

ssight commented Apr 2, 2020

@vaibhavhrt Hm, it seems that it wasn't on GitHub anymore. Nevermind, I've git pushed it again and back it's on now.

@vaibhavhrt
Copy link

vaibhavhrt commented Apr 2, 2020

cool I will install it & check it out.
Also I have chrome extension dev account so I can publish it on chrome store

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants