Green .css + Rene Rivera Banner + Google Search Boost

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 - 3 | Next >

Green .css + Rene Rivera Banner + Google Search Boost

by Matias Capeletto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have upload a proof of concept of the things we talk today here:
http://tinyurl.com/22sja5

I think it looks nice.

Today I have discover a very important fact:
I am not a web designer :P, I have to fight with .css and xlst to
achieve this results. So, I can make small changes like the optional
library logo that I proposed early this morning or make proof of
concepts like this page, but I do not know enough .css and xlst to
make a huge change like this one (at least for now). :(

Joel, my icons are png. But I think we can use your icons with my
.css... Maybe we can paint the black arrows to a dark green.

I hope you like the result, I specially like the google search bar there.

Best regards
Matias

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + Google Search Boost

by Dean Michael Berris :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 6/6/07, Matias Capeletto <matias.capeletto@...> wrote:
> Hi,
>
> I have upload a proof of concept of the things we talk today here:
> http://tinyurl.com/22sja5
>
> I think it looks nice.
>

I agree. It does look nice. :)

Now if I can only write good documentation like this... :)

Great work! Can't wait to see more eye-candy in Boost documentation! :)

--
Dean Michael C. Berris
http://cplusplus-soup.blogspot.com/
mikhailberis AT gmail DOT com
+63 928 7291459

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + Google Search Boost

by Joel de Guzman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Matias Capeletto wrote:
> Hi,
>
> I have upload a proof of concept of the things we talk today here:
> http://tinyurl.com/22sja5
>
> I think it looks nice.

Looks good! Can we see how the quickbook docs look? That way,
we can see all the markups in action.

> Today I have discover a very important fact:
> I am not a web designer :P, I have to fight with .css and xlst to
> achieve this results. So, I can make small changes like the optional
> library logo that I proposed early this morning or make proof of
> concepts like this page, but I do not know enough .css and xlst to
> make a huge change like this one (at least for now). :(

I think you can be a good web designer :)

> Joel, my icons are png. But I think we can use your icons with my
> .css... Maybe we can paint the black arrows to a dark green.

Perhaps. Rene's icons are good too.

> I hope you like the result, I specially like the google search bar there.

I like it. If only we can rig it so that it will search just the
doc :-P

Regards,
--
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + Google SearchBoost

by John Maddock :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Joel de Guzman wrote:

> Matias Capeletto wrote:
>> Hi,
>>
>> I have upload a proof of concept of the things we talk today here:
>> http://tinyurl.com/22sja5
>>
>> I think it looks nice.
>
> Looks good! Can we see how the quickbook docs look? That way,
> we can see all the markups in action.

Me too :-)

Do we want to retain the links to home/people/libraries etc in the banner?

>> I hope you like the result, I specially like the google search bar
>> there.
>
> I like it. If only we can rig it so that it will search just the
> doc :-P

That would be really nice, I can't see how to do it though: google doesn't
seem to have an option for "only search html" :-(

BTW having a website search feature is something that Paul Bristow has been
nagging me about for ages!

It would be nice if we could restrict searches to specific libraries docs
too: sort of like an index :-)

John.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + Google SearchBoost

by Matias Capeletto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 6/7/07, John Maddock <john@...> wrote:

> Joel de Guzman wrote:
> > Matias Capeletto wrote:
> >> Hi,
> >>
> >> I have upload a proof of concept of the things we talk today here:
> >> http://tinyurl.com/22sja5
> >>
> >> I think it looks nice.
> >
> > Looks good! Can we see how the quickbook docs look? That way,
> > we can see all the markups in action.
>
> Me too :-)

Here it is:
http://tinyurl.com/2r6nae

And bimap docs has been updated too:
http://tinyurl.com/22sja5

Google Custom Search lets you customize everything from colors to the
sites that google will include in the search...
I have change it a bit. I can not find in the web the label to changed
the colors... yes! I want them green too!! :)

> Do we want to retain the links to home/people/libraries etc in the banner?

I have never used it, so if you ask me, the answer is no.
The only useful link there is the "libraries". We can add it above the
search box. Once we have qbk general docs, this will be no longer
necessary.
I have not include it here, but in Rene banner when you click the
boost logo you are redirected to the boost main page. I really like
that.

> >> I hope you like the result, I specially like the google search bar
> >> there.
> >
> > I like it. If only we can rig it so that it will search just the
> > doc :-P
>
> That would be really nice, I can't see how to do it though: google doesn't
> seem to have an option for "only search html" :-(

Yes it have.
Try search regex now, I have tell google only gives you results from
www.boost.org/libs

> BTW having a website search feature is something that Paul Bristow has been
> nagging me about for ages!
>
> It would be nice if we could restrict searches to specific libraries docs
> too: sort of like an index :-)

That can be done too.

Best regards
Matias

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by Paul A. Bristow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 

>-----Original Message-----
>From: boost-docs-bounces@...
>[mailto:boost-docs-bounces@...] On Behalf Of
>Matias Capeletto
>Sent: 07 June 2007 13:53
>To: Boost documentation format, structure, and processing discussion
>Subject: Re: [Boost-docs] Green .css + Rene Rivera Banner +
>GoogleSearchBoost
>
>Here it is:
>http://tinyurl.com/2r6nae
>
>And bimap docs has been updated too:
>http://tinyurl.com/22sja5

I like them both  (except for the choice of syntax colors  - Oh damn - I'm stuck in the groove, groove, groove... - but surely
strings should be a different color?)
>
>Google Custom Search lets you customize everything from colors to the
>sites that google will include in the search...
>Try search regex now, I have tell Google only gives you results from
>www.boost.org/libs

A great improvement (so when you find a Boost MACRO but wonder what it does you can search for the docs about it).

But we want to be able to chose just the individual library too.  And I look forward to seeing this in action.  Should be better
than an index - more than one term, and better than Microsoft rather unhelpful help search too?

Paul

---
Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539561830 & SMS, Mobile +44 7714 330204 & SMS
pbristow@...

 





-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by Matias Capeletto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 6/7/07, Paul A Bristow <pbristow@...> wrote:
> >Matias Capeletto
> >Here it is:
> >http://tinyurl.com/2r6nae
> >
> >And bimap docs has been updated too:
> >http://tinyurl.com/22sja5
>
> I like them both  (except for the choice of syntax colors  - Oh damn - I'm stuck in the groove, groove, groove... - but surely
> strings should be a different color?)

Lets do this. Download some of the doc pages and look for this in the
boostbook.css

        /* Syntax Highlighting */
        .keyword        { color: #0000AA; }
        .identifier     { color: #000000; }
        .special        { color: #707070; }
        .preprocessor   { color: #402080; }
        .char           { color: teal; }
        .comment        { color: #800000; }
        .string         { color: teal; }
        .number         { color: teal; }
        .white_bkd      { background-color: #E8FBE9; }
        .dk_grey_bkd    { background-color: #A0DAAC; }

Change the colors and send me the css, I will upload bimap modified
docs and we discuss about it.

> >
> >Google Custom Search lets you customize everything from colors to the
> >sites that google will include in the search...
> >Try search regex now, I have tell Google only gives you results from
> >www.boost.org/libs
>
> A great improvement (so when you find a Boost MACRO but wonder what it does you can search for the docs about it).

Yep.

> But we want to be able to chose just the individual library too.  And I look forward to seeing this in action.  Should be better
> than an index - more than one term, and better than Microsoft rather unhelpful help search too?

I do not think it can beat a well crafted index designed by the
library author but it can be a good approximation. And lets faced it,
It is a lot work to construct this kind of index, so lets google it
and invest our time in other useful stuff :)

Best Regards
Matias

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by Matias Capeletto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> But we want to be able to chose just the individual library too.  And I look forward to seeing this in action.  Should be better
> than an index - more than one term, and better than Microsoft rather unhelpful help search too?

An update on this. I think I have find a very neat solution.

Read:
http://google.com/coop/docs/cse/cref.html

Each library defines one of this xml, that are basically Google Custom
Search templates. If you do not want to use the general xml, you can
include a param to boostbook to overwrite the default.

This lets you change everything and it is very easy to maintain
because it is a simple xml definition...

thanks google :)

Regards
Matias

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by Paul A. Bristow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 

>-----Original Message-----
>From: boost-docs-bounces@...
>[mailto:boost-docs-bounces@...] On Behalf Of
>Matias Capeletto
>Sent: 07 June 2007 16:12
>To: Boost documentation format, structure, and processing discussion
>Subject: Re: [Boost-docs] Green .css + Rene Rivera Banner +
>GoogleSearchBoost

>I do not think it can beat a well crafted index designed by the
>library author but it can be a good approximation. And lets faced it,
>It is a lot work to construct this kind of index, so lets google it
>and invest our time in other useful stuff :)

Precisely - I note that I can't remember finding a single bit of documentation that actually has an index - let alone a carefully
hand crafted one!

So

http://google.com/coop/docs/cse/cref.html

looks very encouraging.

(I had a quick try with it before, but I couldn't get Google to index my private ISP web page to allow me try it.  You have greater
skill and hopefully  better luck.  It also looks to be developed since I last looked.  Thanks again Google.)

Paul

PS Will look at colours tomorrow.

---
Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539561830 & SMS, Mobile +44 7714 330204 & SMS
pbristow@...

 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by Paul A. Bristow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 

>-----Original Message-----
>From: boost-docs-bounces@...
>[mailto:boost-docs-bounces@...] On Behalf Of
>Matias Capeletto
>Sent: 07 June 2007 16:12
>To: Boost documentation format, structure, and processing discussion
>Subject: Re: [Boost-docs] Green .css + Rene Rivera Banner +
>GoogleSearchBoost
>
>On 6/7/07, Paul A Bristow <pbristow@...> wrote:
>> >Matias Capeletto
>> >Here it is:
>> >http://tinyurl.com/2r6nae
>> >
>> >And bimap docs has been updated too:
>> >http://tinyurl.com/22sja5
>>
>> I like them both  (except for the choice of syntax colors  -
>Oh damn - I'm stuck in the groove, groove, groove... - but surely
>> strings should be a different color?)
>
>Lets do this. Download some of the doc pages and look for this in the
>boostbook.css
>
>        /* Syntax Highlighting */
>        .keyword        { color: #0000AA; }
>        .identifier     { color: #000000; }
>        .special        { color: #707070; }
>        .preprocessor   { color: #402080; }
>        .char           { color: teal; }
>        .comment        { color: #800000; }
>        .string         { color: teal; }
>        .number         { color: teal; }
>        .white_bkd      { background-color: #E8FBE9; }
>        .dk_grey_bkd    { background-color: #A0DAAC; }
>
>Change the colors and send me the css, I will upload bimap modified
>docs and we discuss about it.

I've tried this and I like

        /* Previous Syntax Highlighting
                        .keyword        { color: #0000AA; }
                        .identifier     { color: #000000; }
                        .special        { color: #707070; }
                        .preprocessor   { color: #402080; }
                        .char           { color: teal; }
                        .comment        { color: #800000; }
                        .string         { color: teal; }
                        .number         { color: teal; }
                        .white_bkd      { background-color: #FFFFFF; }
                        .dk_grey_bkd    { background-color: #999999; }
        */
    /* New Syntax Highlighting
       using Recognized color keyword names, for example:
       http://www.w3.org/TR/SVG/types.html see section 4.2
    */
        .keyword        { color: blue; }
        .identifier     { color: black; }
        .special        { color: magenta; }
        .preprocessor   { color: blueviolet; }
        .char           { color: teal; }
        .comment        { color: green; }
        .string         { color: teal; }
        .number         { color: red; }
        .white_bkd      { background-color: white; }
        .dk_grey_bkd    { background-color: dimgray; }

BTW I note many of the examples in date-time that I used as some test code blocks didn't syntax highlight at all.  And other library
docs are quite different...  But that's what we are changing?

But I'm also impressed at how easy it is to change it to ones preference,
but editing the boostbook.css file.

Of course, this is THE definitive color set ;-)

It's a bit 'nursery colors' - but then in ones second childhood...

 special dark magenta?? if you find this bit much?

Views?

Paul

---
Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539561830 & SMS, Mobile +44 7714 330204 & SMS
pbristow@...

 
   


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by Matias Capeletto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>     /* New Syntax Highlighting
>        using Recognized color keyword names, for example:
>        http://www.w3.org/TR/SVG/types.html see section 4.2
>     */
>         .keyword        { color: blue; }
>         .identifier     { color: black; }
>         .special        { color: magenta; }
>         .preprocessor   { color: blueviolet; }
>         .char           { color: teal; }
>         .comment        { color: green; }
>         .string         { color: teal; }
>         .number         { color: red; }
>         .white_bkd      { background-color: white; }
>         .dk_grey_bkd    { background-color: dimgray; }

Before I upload it, (and because upload does not work right now :P)
can we change the pink colour of ( < > ) etc??
The other colors looks fine, as you say a little nursery, but they
look fine. Once we decide a set of basic colors I can choose similar
but less eye attacking colors. A bit more white on the "blue" color
for example...

Is there a De facto standard for colors somewhere?

> But I'm also impressed at how easy it is to change it to ones preference,
> but editing the boostbook.css file.

The same happens to me, and I can stop changing all the others things around :D

Lets keep working
Best regards
Matias

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by John Maddock :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Matias Capeletto wrote:
> Is there a De facto standard for colors somewhere?

Visual Studio?

John.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by Paul A. Bristow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 

>-----Original Message-----
>From: boost-docs-bounces@...
>[mailto:boost-docs-bounces@...] On Behalf Of
>Matias Capeletto
>Sent: 08 June 2007 13:24
>To: Boost documentation format, structure, and processing discussion
>Subject: Re: [Boost-docs] Green .css + Rene Rivera Banner +
>GoogleSearchBoost
>
>>     /* New Syntax Highlighting
>>        using Recognized color keyword names, for example:
>>        http://www.w3.org/TR/SVG/types.html see section 4.2
>>     */
>>         .keyword        { color: blue; }
>>         .identifier     { color: black; }
>>         .special        { color: magenta; }
>>         .preprocessor   { color: blueviolet; }
>>         .char           { color: teal; }
>>         .comment        { color: green; }
>>         .string         { color: teal; }
>>         .number         { color: red; }
>>         .white_bkd      { background-color: white; }
>>         .dk_grey_bkd    { background-color: dimgray; }
>
>Before I upload it, (and because upload does not work right now :P)
>can we change the pink colour of ( < > ) etc??

darkmagenta is les glaring than magenta?

Paul



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by Matias Capeletto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> >Before I upload it, (and because upload does not work right now :P)
> >can we change the pink colour of ( < > ) etc??
>
> darkmagenta is les glaring than magenta?

Much better.
Is this the colorset from VS?
mat

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by Jeff Garland :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Paul A Bristow wrote:

> BTW I note many of the examples in date-time that I used as some test code blocks
> didn't syntax highlight at all.  And other library
> docs are quite different...  But that's what we are changing?

That's because the date-time docs were written before quickbook so they are
generated directly from boost-book xml.  Since they don't have the needed
annotations in the source changing the .css won't have any effect.....sorry...

Jeff

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by Matias Capeletto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have looked at VS colouring scheme, IMO users will be grateful if we
provide this kind of syntax highlight... it is not my usual IDE but I
know that many many others use it. Some of the colors where similar to
the one Paul choose.

The things I do not like about VS syntax are:

* The #include keyword is colored with the same color of the keywords.
* Numbers are black
* Eye damaging colors are used, I like blue for identifiers but
(0,0,255) calls to much attention.

I changed the css with a VS "like" syntax that IMHO it is better suited for us.

You can see the results here:
http://tinyurl.com/2lh95s

Comments are welcome
Best regards
Matias

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by Rene Rivera-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Matias Capeletto wrote:

> I have looked at VS colouring scheme, IMO users will be grateful if we
> provide this kind of syntax highlight... it is not my usual IDE but I
> know that many many others use it. Some of the colors where similar to
> the one Paul choose.
>
> The things I do not like about VS syntax are:
>
> * The #include keyword is colored with the same color of the keywords.
> * Numbers are black
> * Eye damaging colors are used, I like blue for identifiers but
> (0,0,255) calls to much attention.
I might as well point out the coloring that my editor, SciTE, does as it
seems to be like the VS style but without those problems. HTML export,
directly from the editor, is attached.


--
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

step_by_step.cpp // Boost.Bimap
//
// Copyright (c) 2006-2007 Matias Capeletto
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

//  VC++ 8.0 warns on usage of certain Standard Library and API functions that
//  can be cause buffer overruns or other possible security issues if misused.
//  See http://msdn.microsoft.com/msdnmag/issues/05/05/SafeCandC/default.aspx
//  But the wording of the warning is misleading and unsettling, there are no
//  portable alternative functions, and VC++ 8.0's own libraries use the
//  functions in question. So turn off the warnings.
#define _CRT_SECURE_NO_DEPRECATE
#define _SCL_SECURE_NO_DEPRECATE

// Boost.Bimap Example
//-----------------------------------------------------------------------------

#include <boost/config.hpp>

#include <iostream>
#include <cassert>

// A convinience header is avaiable in the boost directory:
#include <boost/bimap.hpp>

int main()
{
    //[ code_step_by_step_definition

    typedef boost::bimap< int, std::string > bm_type;
    bm_type bm;
    //]

    //[ code_step_by_step_set_of_relations_view

    bm.insert( bm_type::value_type(1, "one" ) );
    bm.insert( bm_type::value_type(2, "two" ) );

    std::cout << "There are " << bm.size() << "relations" << std::endl;

    for( bm_type::const_iterator iter = bm.begin(), iend = bm.end();
        iter != iend; ++iter )
    {
        // iter->left  : data : int
        // iter->right : data : std::string

        std::cout << iter->left << " <--> " << iter->right << std::endl;
    }
    //]

    //[ code_step_by_step_left_map_view

    /*<< The type of `bm.left` is `bm_type::left_map` and the type
         of `bm.right` is `bm_type::right_map` >>*/
    typedef bm_type::left_map::const_iterator left_const_iterator;

    for( left_const_iterator left_iter = bm.left.begin(), iend = bm.left.end();
         left_iter != iend; ++left_iter )
    {
        // left_iter->first  : key  : int
        // left_iter->second : data : std::string

        std::cout << left_iter->first << " --> " << left_iter->second << std::endl;
    }

    /*<< `bm_type::left_`\ -type- can be used as a shortcut for the more verbose
    `bm_type::left_map::`\ -type- >>*/
    bm_type::left_const_iterator left_iter = bm.left.find(2);
    assert( left_iter->second ==  "two" );

    /*<< This line produces the same effect of
         `bm.insert( bm_type::value_type(3,"three") );` >>*/
    bm.left.insert( bm_type::left_value_type( 3, "three" ) );
    //]



    //[ code_step_by_step_right_map_view

    bm_type::right_const_iterator right_iter = bm.right.find("two");

    // right_iter->first  : key  : std::string
    // right_iter->second : data : int

    assert( right_iter->second ==  2 );

    assert( bm.right.at("one") == 1 );

    bm.right.erase("two");

    /*<< This line produces the same effect of
         `bm.insert( bm_type::value_type(4,"four") );` >>*/
    bm.right.insert( bm_type::right_value_type( "four", 4 ) );
    //]

    return 0;
}
//]


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by John Maddock :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Matias Capeletto wrote:

> I have looked at VS colouring scheme, IMO users will be grateful if we
> provide this kind of syntax highlight... it is not my usual IDE but I
> know that many many others use it. Some of the colors where similar to
> the one Paul choose.
>
> The things I do not like about VS syntax are:
>
> * The #include keyword is colored with the same color of the keywords.
> * Numbers are black
> * Eye damaging colors are used, I like blue for identifiers but
> (0,0,255) calls to much attention.
>
> I changed the css with a VS "like" syntax that IMHO it is better
> suited for us.
>
> You can see the results here:
> http://tinyurl.com/2lh95s

I like it, my personal preference would be to make the preprocessor
directive slightly darker in color, but otherwise it's quite nice and subtle
and shouldn't upset too many people :-)

John


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by Matias Capeletto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In 6/8/07, John Maddock <john@...> wrote:

> Matias Capeletto wrote:
> > I have looked at VS colouring scheme, IMO users will be grateful if we
> > provide this kind of syntax highlight... it is not my usual IDE but I
> > know that many many others use it. Some of the colors where similar to
> > the one Paul choose.
> >
> > The things I do not like about VS syntax are:
> >
> > * The #include keyword is colored with the same color of the keywords.
> > * Numbers are black
> > * Eye damaging colors are used, I like blue for identifiers but
> > (0,0,255) calls to much attention.
> >
> > I changed the css with a VS "like" syntax that IMHO it is better
> > suited for us.
> >
> > You can see the results here:
> > http://tinyurl.com/2lh95s
>
> I like it, my personal preference would be to make the preprocessor
> directive slightly darker in color, but otherwise it's quite nice and subtle
> and shouldn't upset too many people :-)

Ok, I will make it darker. I think it will look better.
Other suggestions?

Regards
mat

Rene: Gmail is not able to see your colours :(

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Re: Green .css + Rene Rivera Banner + GoogleSearchBoost

by Rene Rivera-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Matias Capeletto wrote:
> I changed the css with a VS "like" syntax that IMHO it is better suited for us.
>
> You can see the results here:
> http://tinyurl.com/2lh95s

I forgot to mention... I don't like the "red" strings. Red is for
errors, so it looks out of place in code.


--
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
Boost-docs@...
Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs
< Prev | 1 - 2 - 3 | Next >