|
-
Aug 30th, 2008, 04:18 PM
#1
Thread Starter
PowerPoster
stupid qst...
Why when copy code from post instead the have only a line ... have for each line of code the progressive number of code???? similar:
1.
'*************************************************************
2.
'* MsgBoxEx() - Written by Aaron Young, February 7th 2000
3.
'* - Edited by Philip Manavopoulos, May 19th 2005
4.
'*************************************************************
5.
6.
Option Explicit
7.
8.
Private Type CWPSTRUCT
9.
lParam As Long
10.
wParam As Long
11.
message As Long
12.
hwnd As Long
13.
End Type
14.
15.
'Added by manavo11
16.
Private Type RECT
17.
Left As Long
-
Aug 30th, 2008, 04:33 PM
#2
Re: stupid qst...
That's a result of poor "code highlighter" implementation - lots of people suffer from that.
If you quote the post first then you will be able to copy code and paste it into your code editor without any problem.
Also, code posted with simple CODE tags can be copy/paste without quoting post.
I personally always use CODE tags - simple but no hassle either.
-
Aug 30th, 2008, 04:34 PM
#3
Re: stupid qst...
There several ways to get around the problem. One is to copy the code to NotePad first and two others are the Copy/Paste VB Code and
Paste VB Code Add-In links in my signature.
-
Aug 30th, 2008, 04:59 PM
#4
Re: stupid qst...
The forums should remove [HIGHLIGHT=vb], that is not very useful, if not provide a way to convert back to normal code (like some other forums are doing)
-
Aug 30th, 2008, 10:08 PM
#5
Frenzied Member
Re: stupid qst...
All I do is copy it into word, remove the formatting and the numbers then paste it into my project. Takes about 30 seconds.
-
Aug 30th, 2008, 11:00 PM
#6
Re: stupid qst...
A lot of ways to do it, some ways just take 2 seconds, but none of them should be necessary if the forums remove the tag [HIGHLIGHT=vb] and not allow anyone to use it.
This problem should not be there in first place. [vb Code] tag gives more problem than it can help, particularly to new comers who has not much programing skills.
-
Aug 30th, 2008, 11:06 PM
#7
Re: stupid qst...
 Originally Posted by CoachBarker
All I do is copy it into word, remove the formatting and the numbers then paste it into my project. Takes about 30 seconds.
That works and in fact it's the way the two links in my signature work, and using them is faster than doing it manually, but copying to Notepad is the fastest way.
-
Aug 31st, 2008, 08:45 AM
#8
Re: stupid qst...
 Originally Posted by anhn
A lot of ways to do it...
And quickest [for me] is like I said "quote-copy-paste".
-
Aug 31st, 2008, 09:18 AM
#9
Re: stupid qst...
Yes, I only knew that after my first 100 posts. I think it happens the same to others. Even worst for this OP, after 218 posts he is still suffering. And you are lucky if you have a fast internet access.
I wrote a small piece of code in an Excel add-in that can do the job properly and quicker than use {Quote}, but I really hate that.
From time to time you can see someone posts only one line of code such as "Set abc = xzy" and wraps it with [HIGHLIGHT=vb] tags. I don't know why they love to do that.
Last edited by anhn; Aug 31st, 2008 at 09:31 AM.
-
Aug 31st, 2008, 11:21 AM
#10
Re: stupid qst...
The highlight tags are very useful but you need to look at its uses beyond simple vb code. It also have many other syntaxe colorings: VB.NET, C#, SQL, etc
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 
-
Sep 4th, 2008, 08:07 AM
#11
Re: stupid qst...
 Originally Posted by RobDog888
The highlight tags are very useful but you need to look at its uses beyond simple vb code. It also have many other syntaxe colorings: VB.NET, C#, SQL, etc
I will agree with others who say they are not - just take sql tags as an example and you will quickly realise how horrible color schema is.
But not only it looks bad - weird colors confuse people who used to color schemas similar to those in SQL Navigator, TOAD, MS SQL, Visual Studio, etc...
-
Sep 4th, 2008, 09:43 AM
#12
Re: stupid qst...
Maybe the color schemes need tweaking but that shouldnt be a reason for it being useless. Everybody has different color preferences but it should stay similar to the native environment.
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 
-
Sep 5th, 2008, 08:12 AM
#13
Re: stupid qst...
 Originally Posted by RobDog888
Maybe the color schemes need tweaking but that shouldnt be a reason for it being useless. Everybody has different color preferences but it should stay similar to the native environment.
I agree with that statement however there is always one schema in every utility that is known as "default" - it is nothing more than "most popular" color schema and that is what had to be implemented here.
Since it wasn't and vast majority hate current colors the code highlighter basically became "useless" or perhaps pointless becose you cannot recognize keywords so it's hard to read code, etc, etc, etc...
... but that would more than enough arguments from me so I'm zipping up ...
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
|