|
-
Jan 21st, 2008, 01:05 AM
#1
Thread Starter
PowerPoster
No color formating in code I post?
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
<--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
If topic has been resolved, please pull down the Thread Tools & mark it Resolved.
Is VB consuming your life, and is that a bad thing?? 
-
Jan 21st, 2008, 01:13 AM
#2
Re: No color formating in code I post?
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 [code] tags:
This is the [Highlight=vb.net] tags:
Just change the language in the highlight= part so it colorizes based upon the language.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 21st, 2008, 08:38 AM
#3
Re: No color formating in code I post?
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.
Last edited by RhinoBull; Jan 21st, 2008 at 09:08 AM.
-
Jan 21st, 2008, 08:48 AM
#4
Re: No color formating in code I post?
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.p...ight=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
-
Jan 21st, 2008, 08:56 AM
#5
Thread Starter
PowerPoster
Re: No color formating in code I post?
 Originally Posted by RobDog888
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 [code] tags:
This is the [Highlight=vb.net] tags:
Just change the language in the highlight= part so it colorizes based upon the language.
Thanks Rob, I'll give it a go.
vbnet Code:
Dim RobDogAnswer as string
RobDogAnswer = "Good Answer!"
MsgBox = "Thank you!"
Last edited by CDRIVE; Jan 21st, 2008 at 09:00 AM.
Reason: code change
<--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
If topic has been resolved, please pull down the Thread Tools & mark it Resolved.
Is VB consuming your life, and is that a bad thing?? 
-
Jan 21st, 2008, 01:42 PM
#6
Re: No color formating in code I post?
No prob. 
Ps, there is more code/highlight tag formatting options in our faq listing:
http://www.vbforums.com/misc.php?do=bbcode
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|