-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display bug in line numbering #1886
Comments
I had this issue too some weeks ago. It is fixed in Chrome 24, which I use now, and I think in chrome 23 too. I use a windows PC. |
Ah ok. What about line numbers in YAML and XML on that page? |
I have highlighting issues as well. For instance, the |
I did a bunch of browser screens of this, and yea, it looks like it basically affects just Chrome 21 & Chrome 22 and some of the IE browsers. So, I'm not sure how much this really matters, but I do see that @wouterj for |
@weaverryan from what I can see, it is: https://github.com/fabpot/sphinx-php/blob/master/sensio/sphinx/configurationblock.py#L28 But Yaml highlighting doesn't work all times too. |
It might just be a CSS issue for things like |
So can we adjust the width of the line numbers? For Debian-based Linuxes, Chrome 22 currently seems to be the only option (I failed to install a newer one on Ubuntu 12.10). |
Another place where syntax highlighting is missing: http://symfony.com/doc/current/book/forms.html#form-theming (the second code block) It uses the The first and second code block in this example uses the same formats, I can't find any difference between them. However, the first gets highlighting and the second doesn't. |
I have indexed all not working code blocks in the book: https://gist.github.com/WouterJ/5029110 From that, I think I can conclude the following: Code blocks are not highlighted if they contain invalid mark-up, or are not indented the way it should be done For instance:
This means that this isn't a website issue, but a code issue. That means that this issues shouldn't get the |
note that |
@stof thank you, that means we should remove the |
@wouterj i cannot gather what is it that is left to do in this issue, could you please summarize? thanks |
my last comment is what is left. All highlighting-breaking characters should be removed, or placed in quotes. |
…ghting (xabbuh) This PR was merged into the 2.3 branch. Discussion ---------- enclose YAML string with double quotes to fix syntax highlighting | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | #1886 as mentioned by @ifdattic in #3467 Commits ------- 24be690 enclose YAML string with double quotes to fix syntax highlighting
This PR was merged into the 2.3 branch. Discussion ---------- Fix highlighting Initial idea was to fix the highlighting. While doing that, others things also got a fix: * indenting * missing formats * some `...` in XML elements * missing comments in other formats | Q | A | --- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | partially #1886 Commits ------- 7c0cf89 Fixed (mostly) yaml code blocks 2a43a97 Fixed YAML code blocks in the book
This PR was merged into the 2.3 branch. Discussion ---------- enclose YAML strings containing % with quotes | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | #1886, #4029 Thanks @iamdto, did you spot some other occurences in the docs? Commits ------- c1c4bc8 remove "..." from XML element tags dbc02a2 quote YAML strings starting with % or @ characters
@wouterj I've checked some of the links that you compiled here: https://gist.github.com/WouterJ/5029110 and the highlighting is indeed wrong for Given that any pre Thank you all for reporting and fixing these highlighting errors. |
When a code block has more than one digit in its line numbers, the display in the docs currently breaks for Google Chrome 22.0.1229.94 under Ubuntu 12.10:
http://i47.tinypic.com/1zg89xf.png
(http://symfony.com/doc/current/components/dependency_injection/types.html)
The issue can be fixed by increasing the
width
oftd.linenos
from35px
to36px
. Themin-width
should probably be adjusted too.With three digit line numbers, the display breaks again. The minimum
width
that works here for "999" is44px
.On a related note: YAML and XML snippets are missing line numbers.
The text was updated successfully, but these errors were encountered: