question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

default code block font-size too small

See original GitHub issue

The default code block font-size was defined as $type-size-7 in _sass/_syntax.scss. This is too small compared with the normal text font.

I’d recommend changing it to 0.8125em (~13 px), which is between $type-size-5 (~16 px) and $type-size-6 (~12 px).

  .highlight {
    margin: 0;
    font-family: $monospace;
    font-size: .8125em;  /* was $type-size-7 */
    line-height: 1.8;
  }

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:23
  • Comments:8

github_iconTop GitHub Comments

3reactions
gsanromacommented, Mar 9, 2019

I also found distracting the icons in the top-right corner of code blocks with text f121 Example: missing-icon Removed the icon by commenting out the line content: in _sass/_syntax.scss

  &:before {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5em;
    background-color: $lighter-gray;
    /* content: "\f121"; */
    font-family: "fontawesome" !important;
    font-size: $type-size-6;
    line-height: 1;
    text-transform: none;
    speak: none;
  }

Happy to use this great template. Thanks for the resource!

1reaction
stevenbitnercommented, Sep 14, 2019

For the code icon issue in the top right, you need to change the font family from “fontawesome” to “Font Awesome 5 Free”. I’d make a pull request with that, but have made all of my personal changes to master and the branch is a bit too muddied up

Read more comments on GitHub >

github_iconTop Results From Across the Web

Font size in "Manager" window, Projects/Resources tabs
The fonts in the Log windows are still small, but this is controlled within Code::Blocks Settings -> View -> "Message logs' font size"....
Read more >
Resizing font in Code::Blocks - Stack Overflow
For Mac, use Key Command + Control + mouse Scroll (up / down) to change font size.
Read more >
How To Change font Size of Code Blocks IDE - YouTube
codeblock #IDE #coding #cprogramming #cpp Change code blocks IDE Font SizeNeed Help in Programming Task? Codersarts is trusted and top rated ...
Read more >
Windows 10 code block font size - Super User
What extensions do you have installed? Is DPI scaling enabled? Can you inspect a code block (right click -> inspect), switch to Computed...
Read more >
How can you change the default codeblock font size?
to TiddlyWiki. Hi, all! I was wondering if anyone knows how to change the size of the text in {{{codeblocks}}}. The monospaced text...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found