2
votes
0answers
38 views

What is the correct capitalization of code examples when beginning a sentence? [duplicate]

I am writing a technical book and a lot of it is structured as explanations of code examples. For instance: var links = data.map(function (d) { return {source: nick_id(d.from), ...
18
votes
3answers
10k views

When a sentence starts with “e.g.”, should the e be capitalized?

When a sentence starts with e.g., should the e be capitalized? Neverminding that it might be better to start with "For example," ... Thinking of SE posts and comments, should the starting e be ...