Syntax highlighter test..

General discussion for off-topic subjects.
your-name-here
Developer
Posts: 168
Joined: Sat Jul 07, 2012 1:58 am

Syntax highlighter test..

Postby your-name-here » Sat Jul 07, 2012 4:12 am

C++:

Syntax: Select all

#ifndef __TEST_H
#define __TEST_H
#endif // __TEST_H



Python:

Syntax: Select all

def load():
print("Hello!")
Absolute
Junior Member
Posts: 13
Joined: Sat Jul 07, 2012 6:48 pm

Postby Absolute » Thu Aug 09, 2012 1:20 am

The python syntax Highlighter looks broken, I have twice the amounts of lines in highlighted code:
ex:
http://www.sourcepython.com/forums/showthread.php?76-Player-index-userid&p=348&viewfull=1#post348
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Thu Aug 09, 2012 1:33 am

Yeah, I reported this. It only shows like that on Chrome. I tested with IE and FF and they both look fine. What seems to be happening is the numbering goes straight down, like instead of 10 being in 1 line, it puts 1 on one line and 0 on the next... Not sure why that is happening, but it is being looked into.

Satoon
User avatar
Monday
Administrator
Posts: 98
Joined: Thu Jul 12, 2012 4:15 am

Postby Monday » Thu Aug 09, 2012 9:43 am

I'll look @ this issue when i get some time.. I am guessing a css issue or something goofy like that.
User avatar
Monday
Administrator
Posts: 98
Joined: Thu Jul 12, 2012 4:15 am

Postby Monday » Thu Aug 09, 2012 5:33 pm

Absolute wrote:The python syntax Highlighter looks broken, I have twice the amounts of lines in highlighted code:
ex:
http://www.sourcepython.com/forums/showthread.php?76-Player-index-userid&p=348&viewfull=1#post348


Is the issue fixed? I edited one of the .css files and it seems to appear on my end?
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Fri Aug 10, 2012 12:46 am

Still not working for me:
http://www.sourcepython.com/forums/showthread.php?15-Coding-Style

The lines still only show 1 character for the line number on each line.

Satoon
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Fri Aug 10, 2012 4:44 am

Not sure if you made more changes, but it seems to work correctly now. Thank you :)
User avatar
Monday
Administrator
Posts: 98
Joined: Thu Jul 12, 2012 4:15 am

Postby Monday » Fri Aug 10, 2012 1:15 pm

satoon101 wrote:Not sure if you made more changes, but it seems to work correctly now. Thank you :)


The change I made was in a css file, a browsers love to cache those things.. :P

Return to “Whatever”

Who is online

Users browsing this forum: No registered users and 15 guests