testing the code tags |
Eric Coleman | [code]
' 0 to hide, and 1 to show
Public Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
Public Declare Function QueryPerformanceFrequency Lib "kernel32" (lpFrequency As Currency) As Long
Public Declare Function QueryPerformanceCounter Lib "kernel32" (lpPerformanceCount As Currency) As Long
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
'**********************************
'constants
Public Const PI As Single = 3.14159265358979
Public Const PI2 As Single = 6.28318530717959
Public Const PI_3 As Single = 1.0471975511966
Public Const Deg2Rad As Single = PI / 180
Public Const power31 = &H80000000
'**********************************l
[/code] |
AT | All you need to do now it have it check the code and highlight invalid commands in red :) |
Eric Coleman | that is actually a pretty good idea. It would be neet to have a part of the website where you could upload code and have the server compile it for you :-) Of course, I'm not sure what that would be usefull for, but it sounds cool. |
Rag on a Stick | I would sometimes have a use for that... although I don't know whether I would use it :)
[code]
'This is a comment _
and it spans over 2 lines
'Private Const Long As Long - another comment
[/code]
Since you didn't use the test forum, then neither will I :) |
Rag on a Stick | I think that is a double break, the font is big after the code box :)
[code]
test
[/code]
Big?
[code]
test
[/code]
Bigger? :)
|
Eric Coleman | looks like the "big text" was an IE issue. Both Opera and Mozilla rendered the CSS without error. And the _ character works now :) Now to just get it to compile... |
Rag on a Stick | I'm not done breaking it yet :). How about this:
[code]
Dim Long As Long
[/code] |
Eric Coleman | You can helps by adding error checking so errors will be highlighted in red. I've attached the asp code used to format the code tags. You can just modify it to add the error checking [:D]
Download Attachment: [url="http://vbgamer.strategon.com/msgboard/uploaded/Eric Coleman/200321704923_color coding.txt"][img]/msgboard/icon_paperclip.gif[/img]200321704923_color coding.txt[/url]
|