Questions tagged [syntax-highlight]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
Lance's user avatar
  • 2,585
6 votes
1 answer

Why are background-colors not or rarely used for syntax highlighting? [closed]

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 ...
valenterry's user avatar
  • 2,429
43 votes
5 answers

Why are dark color schemes in editors so popular? [closed]

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'...
lethal-guitar's user avatar
1 vote
1 answer

How does google code prettify works? [closed]

I am using google code prettify. After a page renders, I decided to check how <code> and <pre> tags and their contents were manipulated. But in view source, I found no changes were made (...
msinfo's user avatar
  • 123
2 votes
1 answer

How to write a syntax checker [closed]

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) ...
ipavlic's user avatar
  • 451
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 ...
asthasr's user avatar
  • 3,439
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. ...
rcs20's user avatar
  • 173
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 ...
Jonathan Schuster's user avatar
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 ...
highBandWidth's user avatar
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 ...
Ben DeMott's user avatar