|
-
Feb 10th, 2007, 01:35 AM
#1
[RESOLVED] LineNumbers in VBCODE
Can you guys please hack it again to add line numbers ?
I've seen it in another programming forum. IMO, it is very useful.
When replying we can just say like, "Change line#5 to line#10 with this code and remove line#21. "
-
Feb 10th, 2007, 03:46 AM
#2
Frenzied Member
Re: LineNumbers in VBCODE
iPrank:
Well, on the one hand you are right, but on the other hand it is a real nuisance when you want to cut and paste someone's code to run it quickly.
I think it is a matter of personal preference.
My choice would be for no line numbers.
-
Feb 10th, 2007, 06:03 AM
#3
Re: LineNumbers in VBCODE
 Originally Posted by AIS4U
My choice would be for no line numbers.
Agreed.
Moreover, if you wanted to refer to line numbers, it would be a simple matter of adding them yourself to someone's code post. I often copy and paste code posts into a test project just so I can properly indent what someone has posted and then repost it, with whatever comments I feel appropriate.
Using MZTools, it would be very easy to add lines numbers before reposting the code with your reply.
-
Feb 10th, 2007, 07:06 AM
#4
Re: LineNumbers in VBCODE
I think it would be a good idea. It would stop those lazy buggers from copy and pasting code straight from the forum.
-
Feb 10th, 2007, 10:21 AM
#5
Re: LineNumbers in VBCODE
Or lead to more problems: "I coppied the code you gave and it gave me errors! PLZ HELP! GIMMIE COD!"
-tg
-
Feb 10th, 2007, 02:05 PM
#6
Re: LineNumbers in VBCODE
 Originally Posted by AIS4U
...My choice would be for no line numbers.
So would be mine.
-
Feb 10th, 2007, 03:17 PM
#7
Re: LineNumbers in VBCODE
 Originally Posted by Hack
Using MZTools, it would be very easy to add lines numbers before reposting the code with your reply.
Probably the best solution for this thread.
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 
-
Feb 10th, 2007, 03:40 PM
#8
Re: LineNumbers in VBCODE
But as TG pointed out people will copy code with the line numbers and will then complain about the bunch of errors so what's the point - it just more troubles, that's all.
-
Feb 11th, 2007, 01:13 AM
#9
Re: LineNumbers in VBCODE
Just add the line numbers in a different element, that way they won't be included when you select the code.
-
Feb 11th, 2007, 06:02 AM
#10
Re: LineNumbers in VBCODE
dp.SyntaxHighlighter is a free JavaScript tool for source code syntax highlighting
that's what one forum uses, and I presume what iPrank was referring to - you can see a VB example here - you can't select the line numbers.
i was a bit 'meh', but having thought about it, it would probably be a nice addition - dunno how much effort it would be for joe & co though...
-
Feb 11th, 2007, 06:16 AM
#11
Re: LineNumbers in VBCODE
 Originally Posted by bushmobile
and I presume what iPrank was referring to
Yep. You are right.
-
Feb 11th, 2007, 08:59 AM
#12
Re: LineNumbers in VBCODE
Nice link bush, maybe we should get that SyntaxHighlighter if JM has a budget for it.
-
Feb 11th, 2007, 09:05 AM
#13
Re: LineNumbers in VBCODE
dp.SyntaxHighlighter is a free JavaScript tool for source code syntax highlighting.
It is licenced under LGPL.
-
Feb 11th, 2007, 09:49 AM
#14
Re: LineNumbers in VBCODE
Talk to Brad then...
-
Feb 11th, 2007, 03:31 PM
#15
Re: LineNumbers in VBCODE
Thats a nice looking piece of formatted code! 
It does state that it was tested on these browsers:
Internet Explorer 6 on Windows XP SP2
Firefox 1.5
Safari 2.0
Opera 8.5
The other thing is that its a client side js formatter. So if they have js disabled it will not format the code. Still it sounds like its completely free. May be worth looking into.
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 
-
Feb 12th, 2007, 12:20 AM
#16
Re: LineNumbers in VBCODE
Client side is not good.
I have used GeSHi for server-side syntax highlighting before. It supports a bewildering array of languages and has been hacking into vBulletin before.
edit: and it supports line numbers
-
Feb 27th, 2007, 12:45 PM
#17
Re: LineNumbers in VBCODE
WOW !
What a great birthday present ! 
Thanks Brad, JPnyc and everyone else !
-
Feb 27th, 2007, 03:03 PM
#18
Re: [RESOLVED] LineNumbers in VBCODE
VB Code:
' testing
' line
' numbers
-
Feb 27th, 2007, 03:04 PM
#19
Re: [RESOLVED] LineNumbers in VBCODE
I like how VB Code doesn't work anymore.
' and how the VB Code button produces hightlight
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
|