Closed jt3k closed 8 years ago
Hi @jt3k, thanks for using the extension! It looks like the formatting is fine. What behavior are you expecting?
I put your comments in workflowy and it highlighted in the same way as English comments:
hm.. then the problem is in default mono-spaced font in the browser
in my default browser settings i look this
=> the "Courier" font for monospaced text
I did some research, and I can say that the two fonts fit well
this font:, "Courier New"
this my research: I created a test page with multiple blocks with mono-spaced font http://jsbin.com/xutikoqeti
in different browsers it looks like this
On these screenshots we can see that the most suitable mono-spaced font is courier-new
Let's make it to be default font in workflowyCodeFormatter ?
workflowyCodeFormatter does not set the font (and I don't think it should), that part actually comes from Google's code-prettify. You are welcome to open the issue there.
lol ok
Oops, I mis-spoke. This is actually set by the Browser/OS. We aren't likely to find a solution that works well across all platforms. Sorry if this causes any trouble, but you should set your monospace font at the system level to alleviate this issue.
@ryanpcmcquen it is really so. but code-prettify allows you to customize the font using styles. Why don't you do it
bump-up, and re-open issue
Adding a font-setting capability would mean having some kind of front-facing options menu. I really don't want to get in to that because it would add a lot of complexity to the code of this extension.
If you want to put together a pull request I will take a look, but honestly I don't think the font should be set by this extension.
You would probably be really happy using this extension in conjunction with workflowyCodeFormatter:
https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha?hl=en
looks good ) thnx
look russian font is no monospaced
for testing u can get this code-snipet
or this link https://workflowy.com/s/vZc2xfdy3h
my system: osx el-capitan chrome 49.0.2623.87 (64-bit)
I can provide any help for testing