Skip to main content

Questions tagged [code]

In computer science, code is any collection of computer instructions (possibly with comments) written using some human-readable computer language, usually as text.

3 votes
1 answer
649 views

Why is monospaced text often smaller than regular text?

I often see that monospaced text is smaller than regular text in the same context. Here are some examples: Crafting Interpreters has the main font 16px large and the monospaced font 13px large. ...
matj1's user avatar
  • 131
3 votes
1 answer
543 views

Struggling to make an accessible data table with clickable rows!

We're currently working on making our data table accessible. Our main concern is the whole clickable row that triggers a side sheet. The entire row is clickable, and a part of its content may be ...
Genevieve Morency's user avatar
1 vote
1 answer
75 views

Do line numbers in a code theme need to meet WCAG AA contrast?

We're designing a custom code theme which displays line numbers, and we're having some internal debate whether these line numbers need to meet WCAG AA contrast guidelines? They're not the main body ...
Adam Thompson's user avatar
2 votes
1 answer
182 views

How should non-monospace code listings be marked up in HTML? [closed]

For marking up source code beyond small fragments embedded in normal text, the official recommendation seems to be to use the code and pre elements. And this works fine if your listings should reflect ...
texdr.aft's user avatar
  • 121
3 votes
3 answers
219 views

Differentiate Design Systems incl. code-snippets from repositories

I'm currently doing some research on design systems (hereafter DS) because we want build one. Context Requirements for a DS guides our designers when building something that needs to conform to our ...
Arthur Boni's user avatar
1 vote
2 answers
911 views

Are most QR codes just used to encode URLs?

My understanding is that all of the QR codes being scanned by Chinese users in WeChat are actually just encoding plain old URLs. I'm not a WeChat user, but this suggests to me that if I (painfully) ...
user227963's user avatar
1 vote
1 answer
85 views

What color scheme is this [closed]

I'd appreciate some info on (the exact, an underlying or a similar) color scheme used for styling code samples on this page: https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-...
jaam's user avatar
  • 111
36 votes
6 answers
28k views

Telephone input (+ country code)

I am asked to improve the sign-up process of a double authentication system. At one step there, we ask users to input their telephone number. Right now users have to click on the flag and choose ...
Mike Mark's user avatar
  • 903
2 votes
1 answer
616 views

Why draw a grid behind text/code in the editor?

Two GNOME applications (Builder and Text Editor) have an option to draw a faint grid in the background of the text editing window. The grid does not map neatly onto the fixed-width font. Does this ...
lofidevops's user avatar
1 vote
1 answer
159 views

How to design configurable scripts for non-programmers [closed]

I have a python script that allows users to parse addresses when batch-editing a table. The script allows the user to choose whether to return the house number or the street name to the field (by ...
User1974's user avatar
  • 243
1 vote
1 answer
94 views

If I need to show a list of http methods for selection, is there a recommended order in which to display them?

I'm working on an API management product, and someone has suggested that we present the methods in alpha order: DELETE GET HEAD OPTIONS PATCH POST PUT My hunch is that this is not the best order, ...
Mattynabib's user avatar
  • 3,756
0 votes
1 answer
111 views

Writing other color spaces than RGB in hex

I'm working on an iphone application that is going to feature a custom color selection tool. The application supports various color spaces and I'd like to use hex because the codes are shorter and ...
Samy Bencherif's user avatar
0 votes
1 answer
97 views

Scaling relative size of nested parentheses in code editors

I was coding today and the thought occurred to me: why is dynamic scaling of the relative sizes of nested parentheses/brackets/curly braces not already a common feature of code editors? One often has ...
Josh's user avatar
  • 101
4 votes
2 answers
700 views

How to make code examples accessible in a document?

I'm creating a MS Word document (and will probably convert it to PDF later on) for a visually impaired programming student. I'm following all the guidelines about text semantics, like correctly using ...
Floella's user avatar
  • 141
9 votes
2 answers
1k views

Why is stackoverflow and blog layout ignorant of screen width? [closed]

Take https://stackoverflow.com/questions/33131200/spring-ignores-property-file-in-current-directory-using-that-in-classpath-instea. Most monitors I use these days are 1080p or atleast 900 anyway, yet ...
HankCa's user avatar
  • 191

15 30 50 per page