Skip to content

rustdoc: tweak highlighting#12649

Merged
bors merged 2 commits into
rust-lang:masterfrom
adrientetar:highlight
Mar 4, 2014
Merged

rustdoc: tweak highlighting#12649
bors merged 2 commits into
rust-lang:masterfrom
adrientetar:highlight

Conversation

@adrientetar

Copy link
Copy Markdown
Contributor

Here is an example.

Closes #12648.

@alexcrichton, @huonw

@huonw

huonw commented Mar 2, 2014

Copy link
Copy Markdown
Contributor

I'm not a fan of bright orange identifiers. Also, could you upload some more code (e.g. the hashmap example from #12648)? The to_str module doesn't really have much actual code.

(Also, this needs a rebase.)

@huonw

huonw commented Mar 2, 2014

Copy link
Copy Markdown
Contributor

(If you submit the second commit as a separate PR, I'll r+ it.)

@adrientetar

Copy link
Copy Markdown
Contributor Author

Rebased and made idents darker.

@adrientetar

Copy link
Copy Markdown
Contributor Author

HashMap.

@liigo

liigo commented Mar 2, 2014

Copy link
Copy Markdown
Contributor

Too many light orange…
2014年3月2日 下午8:24于 "Adrien Tétar" notifications@github.com写道:

HashMap http://adrientetar.legtux.org/cached/rust-doc/index.html.


Reply to this email directly or view it on GitHubhttps://github.com//pull/12649#issuecomment-36452826
.

@adrientetar

Copy link
Copy Markdown
Contributor Author

Now brown.

@alexcrichton

Copy link
Copy Markdown
Member

I know I've already lost my graphic design degree, but perhaps we don't have to color all identifiers?

@adrientetar

Copy link
Copy Markdown
Contributor Author

@alexcrichton Do you mean all of them? everything in brown here is idents.

@alexcrichton

Copy link
Copy Markdown
Member

Indeed, I figured most would be black, but take that with a grain of salt (I'm very bad at design)

@adrientetar

Copy link
Copy Markdown
Contributor Author

cc @brson

@brson

brson commented Mar 4, 2014

Copy link
Copy Markdown
Contributor

I like this scheme (looks like candy), but @alexcrichton has a point about black idents - if everything has a color it lessens the impact of everything else. Can we see one with black idents?

@adrientetar

Copy link
Copy Markdown
Contributor Author

Here is HashMap with black idents.
Yea I agree, I will push an update later today.

@adrientetar

Copy link
Copy Markdown
Contributor Author

Updated. r?

@alexcrichton

Copy link
Copy Markdown
Member

Could you also post a preview of some more source code? I'm curious what this looks like in lots of code other than just a snippet.

@adrientetar

Copy link
Copy Markdown
Contributor Author

HashMap (source), Macros (source).

(BTW if you have FF or Chrome, just navigate to the page you want, right click > inspect (or press F12) then go under Stylesheet editor and paste the CSS).

@bors bors closed this Mar 4, 2014
@bors bors merged commit 0106a04 into rust-lang:master Mar 4, 2014
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 18, 2024
Consistent lint group table in book and README

The lint table and the restriction group description was improved in rust-lang#10385, but only in the README. Apply the same changes to the book.

r? `@xFrednet`

I noticed that I left review comments about this in rust-lang#10385, but never submitted them. So to this day they are listed as "pending" in the GitHub UI.

This is just copy and paste of the current README file on `master`.

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adjust the rustdoc highlighting colour scheme

6 participants