Click to See Complete Forum and Search --> : No color formating in code I post?
CDRIVE
Jan 21st, 2008, 12:05 AM
I notice that when others post code, their code is color formated. When I use the Code quotes I do not get any color formating?
Thanks
RobDog888
Jan 21st, 2008, 12:13 AM
The code tags dont colorize or add line numbers but are good as they dont create that line break issue when copy/pasting posted code.
Here is regular tags:
[code]Dim i As Integer
This is the tags:
[highlight=VB.NET]Dim i As Integer = 100
Just change the language in the highlight= part so it colorizes based upon the language.
RhinoBull
Jan 21st, 2008, 07:38 AM
The [highlight=] tags are horrible:
- color schema is far from being even good
- copy/paste doesn't work as expected so you need to use some silly work arrrounds
Mainly because of that some of us use ordinary CODE tags.
If you like colors you may highlight some text and aplly color of your choice manually.
Paul M
Jan 21st, 2008, 07:48 AM
Have a look at my first post in the following link, it contains a link to a great tool that parses the code and when you paste it into your code tags it will be highlighted with no problems and ready to be copied/pasted ;)
http://www.vbforums.com/showthread.php?t=489179&highlight=highlight
P.S Mod/Admin, someone should really make a stick for that tool or something it will save you guys and others the hassle of answering these sort of threads and it will be easier for people to discover it ;)
CDRIVE
Jan 21st, 2008, 07:56 AM
The code tags dont colorize or add line numbers but are good as they dont create that line break issue when copy/pasting posted code.
Here is regular tags:
[code]Dim i As Integer
This is the tags:
[highlight=VB.NET]Dim i As Integer = 100
Just change the language in the highlight= part so it colorizes based upon the language.
Thanks Rob, I'll give it a go.
Dim RobDogAnswer as string
RobDogAnswer = "Good Answer!"
MsgBox = "Thank you!"
RobDog888
Jan 21st, 2008, 12:42 PM
No prob. :)
Ps, there is more code/highlight tag formatting options in our faq listing:
http://www.vbforums.com/misc.php?do=bbcode
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.