473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Dev c++ bold convention

Could anyone explain the rule the Dev C++ compiler uses for deciding
whether to convert a display of a word to bold font?

A first attempt at an answer could be "Words are displayed in bold when
they have an assigned meaning in c++".

However, this answer doesn't quite work -- "main" does not get
converted automatically to bold, and nor do words for classes of
streams such as "iostream" for example. Surely, such words do have
assigned meanings.

Thank you.

Paul Epstein

Oct 17 '05 #1
12 2707
pa**********@att.net wrote:
Could anyone explain the rule the Dev C++ compiler uses for deciding
whether to convert a display of a word to bold font?

A first attempt at an answer could be "Words are displayed in bold when
they have an assigned meaning in c++".

However, this answer doesn't quite work -- "main" does not get
converted automatically to bold, and nor do words for classes of
streams such as "iostream" for example. Surely, such words do have
assigned meanings.

Thank you.

Paul Epstein


This question, which is about a specific IDE, is off-topic in this
newsgroup, which is concerned with C++ language issues. Try in a
Dev-C++-specific newsgroup. See also this FAQ:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

PS, I suspect only *reserved* words in C++ are highlighted. Functions
and parts of the standard library (e.g., main, printf, cout) don't
qualify.

Oct 17 '05 #2
Well, the "PS" part of your answer leads to the c++ distinction between
reserved and non-reserved words. And it also points out that some
words which have distinct meanings like "main" etc. are nevertheless
not reserved.

The above two facts are facts about "the c++ language" however narrowly
you define the phrase.

By analogy, suppose someone says "I didn't understand ... in ...book on
c++". Are you then going to attack that person because this newsgroup
is only about the c++ language and not about c++ books?

Provided that the newsgroup allows elementary questions [my question
was certainly elementary], it is 100% on topic, and you are wrong to
criticise me for my posting.

However, if beginner questions are not allowed here, then, fair enough,
mea culpa, I stand corrected.

Paul Epstein

Oct 17 '05 #3
<pa**********@att.net> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Could anyone explain the rule the Dev C++ compiler
It's not the compiler doing that, but your editor.
Not the same thing.
uses for deciding
whether to convert a display of a word to bold font?

A first attempt at an answer could be "Words are displayed in bold when
they have an assigned meaning in c++".
I think that's pretty much the answer. But note that
function names (including those from the standard library)
are not really considered part of the language 'proper',
as are keywords such as 'if' and 'for'.

However, this answer doesn't quite work -- "main" does not get
converted automatically to bold, and nor do words for classes of
streams such as "iostream" for example.
I presume you mean standard header names. The names themselves
are not part of the language, but part of the standard library.
But I suspect the keyword '#include' is somehow 'highlighted',
isn't it?
Surely, such words do have
assigned meanings.


Yes, but not by the language.

Some code editors and IDE's offer a facility where you can
add your own list of 'special' words and assign graphical
characteristics (e.g. 'bold' or color) to them. I don't
know if this is the case with yours. However there are
many 'syntax highlighting' editors available, both free and
commercial. Try a web search.

For future reference, note that issues like this are not
topical for comp.lang.c++, which is only for discussion
of the language itself, and not about specific tools such
as compilers or editors. This is why I've modified your
subject line with [OT].

Purpose of comp.lang.c++ :
http://www.slack.net/~shiva/welcome.txt

-Mike
Oct 17 '05 #4
<pa**********@att.net> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Well, the "PS" part of your answer leads to the c++ distinction between
reserved and non-reserved words. And it also points out that some
words which have distinct meanings like "main" etc. are nevertheless
not reserved.

The above two facts are facts about "the c++ language" however narrowly
you define the phrase.

By analogy, suppose someone says "I didn't understand ... in ...book on
c++". Are you then going to attack that person because this newsgroup
is only about the c++ language and not about c++ books?

Provided that the newsgroup allows elementary questions [my question
was certainly elementary], it is 100% on topic, and you are wrong to
criticise me for my posting.
I would admit that a certain 'essence' of your query might
be considered topical (i.e. about the C++ language), but
part of it is not (the operation of your editor).

The part which is topical could be restated: "what comprises
a keyword or 'reserved' word in C++?" My answer is:

"Keywords" are those words 'built in' to the language, for which
no other 'outside' information is required for a translator
(a.k.a. 'compiler') to discern their meaning. Some examples are
'if', 'for', 'do', 'break'. The source of an exhaustive list
of these words would be a good C++ text, or of course the ISO
standard defining the language (ISO 14882).

"Reserved" words (or more formally, 'names' and names composed
in a specified way of particular characters) include keywords,
but also include entities such as standard library names and
names reserved to an implementation, such as those beginnning
with two underscores (__).

See my other posting in this thread for a suggestion.


However, if beginner questions are not allowed here,
Questions resulting from any level of knowledge and skill are
most welcome here, however they must be topical. My other
reply to your question I marked [OT], but in retrospect, perhaps
it should have been 'partly OT'. :-)

then, fair enough,
mea culpa, I stand corrected.


I hope I've cleared things up at least a bit.

-Mike
Oct 17 '05 #5
Thank you for your very detailed and useful information. I do
appreciate that.

However, I still maintain that I was 100% on topic. I'll show you why.

Suppose I said "My Dev C++ editor makes the words int, float, do
become bold. However, it doesn't do that with other words such as main
or iostream. Can you explain the essential conceptual difference
between the words in the above list which are made bold, and the words
which aren't?"

Since my query is now a request for explaining the difference between
two sets of c++ words, it is, from an absolutely narrow and pure
perspective, a c++ language question. This is because, in the above
quote, the fact that I spotted the difference in a dev c++ context is
purely an introduction to the real c++ question.

So I've proved that my new modified quotation is definitely on topic.

However, the above modified quotation is an extremely close paraphrase
of the posting that was unfairly attacked. (It was mlimber who was
unfair. I have no problem at all with Mike Wahler. In fact you've
been extremely generous and helpful.)

So, since the new modified quotation is on topic, my original posting
is also on topic.

I couldn't possibly have talked about "keywords" and "reserved words"
in my original posting (as you suggest) because I didn't know those two
phrases. If I was familiar with the concept, "reserved word", I would
have googled it and found out that way.

Paul Epstein

Oct 17 '05 #6
pauldepst...@att.net wrote:
Well, the "PS" part of your answer leads to the c++ distinction between
reserved and non-reserved words. And it also points out that some
words which have distinct meanings like "main" etc. are nevertheless
not reserved.

The above two facts are facts about "the c++ language" however narrowly
you define the phrase.

By analogy, suppose someone says "I didn't understand ... in ...book on
c++". Are you then going to attack that person because this newsgroup
is only about the c++ language and not about c++ books?
I humbly apologize if you took my response as an "attack." It was not
intended as such, and I hope you'll take it in the spirit in which it
was meant.
Provided that the newsgroup allows elementary questions [my question
was certainly elementary], it is 100% on topic, and you are wrong to
criticise me for my posting.

However, if beginner questions are not allowed here, then, fair enough,
mea culpa, I stand corrected.


Beginner questions are always welcome, though they must be on topic.
The FAQ that I cited defines what is on topic here:

"Only post to comp.lang.c++ if your question is about the C++ language
itself. For example, C++ code design, syntax, style, rules, bugs, etc.
Ultimately this means your question must be answerable by looking into
the C++ language definition as determined by the ISO/ANSI C++ Standard
document, and by planned extensions and adjustments. Operating-specific
questions (e.g., about Windows NT / 95 / 3.x, UNIX, etc.) should go to
an operating-system-specific newsgroup (see below), not to
comp.lang.c++."

As I interpreted it, your post was primarily concerned with an
environmental feature -- namely, the color syntax highlighting of your
particular IDE -- and that is off-topic here as I understand the FAQ
because syntax highlighting is most often a user configurable feature.
Of course there's some gray area, and I think my /post scriptum/
addressed that.

Cheers! --M

Oct 17 '05 #7

<pa**********@att.net> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Thank you for your very detailed and useful information. I do
appreciate that.

However, I still maintain that I was 100% on topic. I'll show you why.

Suppose I said "My Dev C++ editor makes the words int, float, do
become bold. However, it doesn't do that with other words such as main
or iostream. Can you explain the essential conceptual difference
between the words in the above list which are made bold, and the words
which aren't?"

Since my query is now a request for explaining the difference between
two sets of c++ words, it is, from an absolutely narrow and pure
perspective, a c++ language question. This is because, in the above
quote, the fact that I spotted the difference in a dev c++ context is
purely an introduction to the real c++ question.

So I've proved that my new modified quotation is definitely on topic.

However, the above modified quotation is an extremely close paraphrase
of the posting that was unfairly attacked. (It was mlimber who was
unfair. I have no problem at all with Mike Wahler. In fact you've
been extremely generous and helpful.)

So, since the new modified quotation is on topic, my original posting
is also on topic.

I couldn't possibly have talked about "keywords" and "reserved words"
in my original posting (as you suggest) because I didn't know those two
phrases. If I was familiar with the concept, "reserved word", I would
have googled it and found out that way.


I respectfully suggest that you become less obsessed with
'being right'. :-) I believe you've got your answer, and
despite your disagreement with 'mlimber', I doubt you're
bleeding or sporting any bruises (except perhaps to your
ego :-))

Let's move on, OK? :-)

-Mike

P.S. While I suppose it's a good thing that your editor did
cause you to ask a language question, I'll warn you not to
use such (or a compiler for that matter) as the source of
any definitive answers about the language. Not all of these
tools get everything right every time.

Oct 17 '05 #8
pa**********@att.net wrote:
Thank you for your very detailed and useful information. I do
appreciate that.

However, I still maintain that I was 100% on topic. I'll show you why.

Suppose I said "My Dev C++ editor makes the words int, float, do
become bold. However, it doesn't do that with other words such as main
or iostream. Can you explain the essential conceptual difference
between the words in the above list which are made bold, and the words
which aren't?"

Since my query is now a request for explaining the difference between
two sets of c++ words, it is, from an absolutely narrow and pure
perspective, a c++ language question. This is because, in the above
quote, the fact that I spotted the difference in a dev c++ context is
purely an introduction to the real c++ question.
Yes.
So I've proved that my new modified quotation is definitely on topic.
Correct.
However, the above modified quotation is an extremely close paraphrase
of the posting that was unfairly attacked.
Not so. Your original posting started with this sentence setting the topic:

|| > Could anyone explain the rule the Dev C++ compiler uses for deciding
|| > whether to convert a display of a word to bold font?

And then you provided some examples. However, from the original wording it
is pretty clear that your question is about the behavior of Dev C++; and to
answer your original question one would need to know Dev C++.

(It was mlimber who was unfair. I have no problem at all with Mike
Wahler. In fact you've been extremely generous and helpful.)

So, since the new modified quotation is on topic, my original posting
is also on topic.


That does not follow. All that follows is that you could have posted
something topical instead of your original posting.

[snip]
Best

Kai-Uwe Bux

Oct 17 '05 #9
mlimber wrote:
pauldepst...@att.net wrote:
Well, the "PS" part of your answer leads to the c++ distinction between
reserved and non-reserved words. And it also points out that some
words which have distinct meanings like "main" etc. are nevertheless
not reserved.

The above two facts are facts about "the c++ language" however narrowly
you define the phrase.

By analogy, suppose someone says "I didn't understand ... in ...book on
c++". Are you then going to attack that person because this newsgroup
is only about the c++ language and not about c++ books?


I humbly apologize if you took my response as an "attack." It was not
intended as such, and I hope you'll take it in the spirit in which it
was meant.
Provided that the newsgroup allows elementary questions [my question
was certainly elementary], it is 100% on topic, and you are wrong to
criticise me for my posting.

However, if beginner questions are not allowed here, then, fair enough,
mea culpa, I stand corrected.


Beginner questions are always welcome, though they must be on topic.
The FAQ that I cited defines what is on topic here:

"Only post to comp.lang.c++ if your question is about the C++ language
itself. For example, C++ code design, syntax, style, rules, bugs, etc.
Ultimately this means your question must be answerable by looking into
the C++ language definition as determined by the ISO/ANSI C++ Standard
document, and by planned extensions and adjustments. Operating-specific
questions (e.g., about Windows NT / 95 / 3.x, UNIX, etc.) should go to
an operating-system-specific newsgroup (see below), not to
comp.lang.c++."

As I interpreted it, your post was primarily concerned with an
environmental feature -- namely, the color syntax highlighting of your
particular IDE -- and that is off-topic here as I understand the FAQ
because syntax highlighting is most often a user configurable feature.
Of course there's some gray area, and I think my /post scriptum/
addressed that.

Cheers! --M


FYI, I sent this post circa 5 PM. Not sure why it was delayed.

Cheers! --M

Oct 17 '05 #10
"mlimber" <ml*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...

FYI, I sent this post circa 5 PM. Not sure why it was delayed.


5 p.m. on which planet?

BTW you're OT. :-) :-) :-)

-Mike

Oct 17 '05 #11
Mike Wahler wrote:
"mlimber" <ml*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...

FYI, I sent this post circa 5 PM. Not sure why it was delayed.
5 p.m. on which planet?


5 PM EST, an hour earlier than it actually appeared.
BTW you're OT. :-) :-) :-)


You are correct, and I've adjusted the subject accordingly!

Cheers! --M

Oct 17 '05 #12
Well, the subject of who is "off-topic" is decided by the newsgroup
community.

So, I do now accept that the replies to my postings show that I am
off-topic by these community standards.

I'm sorry if my criticism of mlimber was unfair.

O.k. I'll move on (re Mike Wahler's comment). Maybe I was
oversensitive. I look forward to posting interesting questions as I
learn more about the language.

Paul Epstein

Oct 17 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Victor Martin | last post by:
Bold text in proportional fonts use up more space than non-bold text. Is there a way to keep the space bold takes up within the limits of the regular text while keeping the same font?
19
by: John Salerno | last post by:
I just realized that the C# convention for uses braces is to put the opening brace immediately after the first line that defines the block (except for class declarations) like this: if...
3
by: Rich | last post by:
Could someone share how to toggle the font property of a label from regular to bold and back to regular? I have tried label.Font.Bold = True but get the error message that this property is...
5
by: Stefan Mueller | last post by:
In HTML I use <b>...</b> to make parts of a text bold. <h1 class = "Style-MyText">This text is normal. <b>This text is bold.</b></h1> Now I'd like to do the same with a JavaScript. I tried...
4
by: **Developer** | last post by:
I looked at MSDN and a book and both described the naming convention for parameters should be camel style. The book used camel, except for Set (ByVal Value as ...) There it always used an...
9
by: Jason | last post by:
If I've got Me.RichTextBox1.Text = "In Ricn Tex Box" Me.RichTextBox1.Text &= "Line two" & vbCrLf How do I make the first line appear BOLD?
12
by: Belebele | last post by:
Suppose that a class A depends on class B because an object of class B is passed into A's constructor. See below: class B { ... }; class A { public: A(B const& b); ... };
5
by: fidtz | last post by:
Sorry for asking here, but I don't know enough dotnet or Windows programming yet to be very good at googling for answers. OTOH, this is the first question I haven't be able to resolve myself, the...
0
by: Guilherme Polo | last post by:
On Thu, Sep 18, 2008 at 1:06 PM, April Lekin <lekin2@llnl.govwrote: Yes. You could separate them in two labels (if you are using labels), or apply a different tag if you are using a Text...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.