When i read a post,the code (enclosed in the well known tags),is not numbered as it should be.Take a screenshot of a random post
How can i solve it?At the windows laptop it was ok,but in this MacBook Pro (Mac OS X -Version 10.7.5 (Lion))
When i read a post,the code (enclosed in the well known tags),is not numbered as it should be.Take a screenshot of a random post
How can i solve it?At the windows laptop it was ok,but in this MacBook Pro (Mac OS X -Version 10.7.5 (Lion))
It seems to be a chrome-specific problem. You've already done everything you can to help though.
I am not a CSS guy, but I did this :
1)Select any line number in the code, right click, select "Inspect Element"
2)In the matched CSS Rules, edit the following rule to remove the bolded text(0.5em to 0em):
It was back to normal for me in chrome. If you are a regular chrome user, and this solved the problem, install an addon like "Stylish" in firefox(not sure what is the counterpart in chrome) and install this CSS there for URL cboard.cprogramming.com to make it permanent.Code:.syntaxhighlighter table td.gutter .line { text-align: right !important; padding: 0 0.5em 0 1em !important; }
Again, I am not a CSS guy, so if this botches up other alignments I am not responsible
Not everything that can be counted counts, and not everything that counts can be counted
- Albert Einstein.
No programming language is perfect. There is not even a single best language; there are only languages well suited or perhaps poorly suited for particular purposes.
- Herbert Mayer
This is a class.If the class is activated in other contents to(which i think it is),then the other contents are going to be disrupted to.However this was a solution,but i do not think that it worths the trying But thanks for it.
Because the syntaxhighlighter class has so many places to be relevant...
how long did it take to make this colorful world?
That's not the point however :-p
But it is the point. According to CSS rules, subelements, such as table in the example, can only apply to elements on the left (where they are contained). So unless syntaxhighlighter is used elsewhere there is no risk of polluting the page.
Correct.But i have an idea.Wouldn't it be much better to have the css code modificated(just a little bit) so that all the user's of chrome could enjoy this tool of numbering the lines of code?
I mean ok,i can change it,but i will stay on this forum no matter what happens with the browsers.A random person however,is less likely to try finding out why this does not works in his favorite browser and much more likely to go to another forum..Well this may sound too much,but i think that all the details matter
You're welcome to go to another forum.
Oh come on..don't you understand what i am saying?
I can't imagine it's especially difficult to change a .css file on a website like this. since chrome is well on its way to becoming the most popular desktop browser, it might be worthwhile to make the change.
O_o
Look at it this way, if you get such a plugin (like "Stylish") you may just fix the code, but you could also send the relevant information to the owner ("webmaster"?) and possible get it fixed for everyone on the same stack which helps this forum.
Soma
Glad that you got my point :-D I 'll give it a try and report back.
I tried since yesterday several times and the CSS won't simply load because of restriction rules..But what is happening is that in the code the numbers of lines that are two digit numbers(and more i would say) ,simply does not fit and float to the left.As a result the second digit goes in the next line(where the other number should begin) and so on..
The solution must be what stevesxmith said on post No.4 .
So if someone knows the "webmaster" he or she could contact him/her.I don't know him so i can not.