Questions tagged [syntax-highlight]
10 questions
46
votes
6 answers
Syntax-highlighting color scheme studies
Most programmers have their own personal preferences for syntax-highlighting color schemes, but I've been wondering, has anyone ever done an actual scientific study on what the best color scheme would be? I imagine such a study would look at things…

Jonathan Schuster
- 571
- 1
- 4
- 7
43
votes
5 answers
Why are dark color schemes in editors so popular?
Nowadays, almost everybody is using a dark color scheme in their code editor - dark background with light text. Even most web based editors (e.g on Github) feature dark color schemes.
I honestly don't see the benefits. The human eye is much better…

lethal-guitar
- 2,065
- 2
- 16
- 19
22
votes
13 answers
Should I use non-standard tags in a HTML page for highlighting words?
I would like to know if it's a good practice or legal to use non-standard tags in an HTML page for certain custom purposes.
For example:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam
consequat, felis sit amet suscipit laoreet,…

rcs20
- 173
- 1
- 8
7
votes
7 answers
Logistically, how do you manage embedded SQL?
My current application is running into issues with its ORM, and we're relying on some pretty hairy SQL to express queries that the ORM can't. Are there best practices in terms of how to manage the SQL queries? For example, where do these usually…

asthasr
- 3,439
- 3
- 17
- 24
6
votes
1 answer
Why are background-colors not or rarely used for syntax highlighting?
I wonder why I rarely see any IDEs or other developers that use background colors for syntaxhighlighting.
One of the first things when installing and configuring a new IDE is adjusting the colors so that for example comments have a decent light-grey…

valenterry
- 2,429
- 16
- 21
5
votes
2 answers
How the rope data structure works when doing syntax highlighting
I am looking into the Rope Data Structure, used by some text editors like the xi editor.
I get the basics of how it works, and have seen some sample implementations such as here or here. But I am confused as to how you properly (optimally) handle…

Lance
- 2,537
- 15
- 34
2
votes
1 answer
Python syntax highlighting on Codeplex
My .py files in a Codeplex (hg-based) repository don't show up with the nice syntax highlighting as they do for C and C++ when I browse the code on the web. Is there a way to change the syntax highlighting settings in Codeplex?

highBandWidth
- 501
- 4
- 9
2
votes
2 answers
Building a common syntax and scoping framework
Hello fellow programmers,
I was discussing a project the other day with a colleague of mine and I was curious to see what others had to say or if such a thing already existed.
Background
There are many programming languages.
There are many IDE's and…

Ben DeMott
- 601
- 3
- 9
2
votes
1 answer
How to write a syntax checker
How is a syntax checker for a programming language written? I am guessing a grammar has to be written first. How to then proceed?
Motivation
I'm using a programming language (Apex for Salesforce) that is compiled in the cloud and a list of errors is…

ipavlic
- 451
- 4
- 11
1
vote
1 answer
How does google code prettify works?
I am using google code prettify. After a page renders, I decided to check how
and tags and their contents were manipulated.
But in view source, I found no changes were made (in contrast to online syntax highlighters, which generate css…

msinfo
- 123
- 3