Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » General Discussion » Forum Feedback » Make code stand out

17 posts, Page 1 of 2. 12»»

Make code stand outExpand / Collapse
Author
Message
Posted 4/21/2005 10:13:57 AM


Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 5/31/2005 4:52:00 PM
Posts: 62, Visits: 1

Could some functionality be added to the form so that posted code could be set to stand out more?  Maybe have code appear in a greyed box or something like that.

Post #10851
Posted 4/21/2005 11:31:28 AM
Forum God

Forum God

Group: Moderators
Last Login: Yesterday @ 1:42:32 PM
Posts: 1,073, Visits: 9,408

Maybe the next version of the forum will have code tags but since this one doesn't, I came up with the attached project to insert code like this.

Option Explicit

Private Sub Command1_Click()
    If Fourmn <> CodeTags Then
        'Try my App
    End If
End Sub
Post #10859
Posted 4/21/2005 1:56:01 PM


Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 5/31/2005 4:52:00 PM
Posts: 62, Visits: 1

Mark,

Very nice work, I will start using this until the forum has the ability to do it.

Post #10865
Posted 4/21/2005 2:37:31 PM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: 9/1/2006 11:25:31 AM
Posts: 827, Visits: 132
im pretty sure the forum does have [code] tags. they just don't work with firefox. try posting using ie, it should show up. the new release of the forums, which is coming out soon, is supposed to support firefox.

API Guide|Inno Setup Wizard|Winsockvb|StudioTraffic|Firefox
Post #10868
Posted 4/23/2005 2:42:12 PM
Administrator

AdministratorAdministratorAdministratorAdministratorAdministratorAdministratorAdministratorAdministrator

Group: Administrators
Last Login: 1/25/2012 8:43:51 AM
Posts: 69, Visits: 637

Hi,

Yes, the upgrade will include code tags.




Best regards,

Forum Administrator
A1VBCode


Post #10935
Posted 9/12/2005 7:43:53 AM


Forum God

Forum God

Group: Moderators
Last Login: Today @ 8:24:28 PM
Posts: 1,889, Visits: 5,255
Yes Mark's code syntax used to work but it doesn't now.

Edit: It works great now, thanks Mark

Keith

I've been programming with VB for 15 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Post #14099
Posted 9/12/2005 8:47:20 AM
Forum God

Forum God

Group: Moderators
Last Login: Yesterday @ 1:42:32 PM
Posts: 1,073, Visits: 9,408
It still works for me

Option Explicit

Private Sub Command1_Click()
    MsgBox "Seems to work for me"
End Sub
Post #14101
Posted 9/12/2005 9:58:35 AM
Forum God

Forum God

Group: Moderators
Last Login: Yesterday @ 1:42:32 PM
Posts: 1,073, Visits: 9,408
Ok, it appears that the issue may be that you are using Firefox and the way it deals with the html that is generated. I have modifed that app to work with Firefox. Make sure that the Firefox radio button is selected and then press the color code button. The source will be placed on clipboard and then you can just paste that into the forumn window.

  Post Attachments 
syntax.zip (3,480 views, 27.90 KB)
Post #14105
Posted 9/12/2005 10:02:22 AM
Forum God

Forum God

Group: Moderators
Last Login: Yesterday @ 1:42:32 PM
Posts: 1,073, Visits: 9,408
Here is a Firefox sample
Option Explicit

Private Sub Command1_Click()
    MsgBox "Firefox ignores the div border color"
End Sub
Post #14106
Posted 9/12/2005 2:29:44 PM
Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: 3/13/2006 2:34:13 AM
Posts: 794, Visits: 338
Hi MArk,
maybe I haven't had enough coffee yet, but if you look at my screen shot, the post at top has the border and was a post made with IE. The post at bottom doesn't have a border and was made with firefox.

Maybe firefox 1.0.6 will display the border color and maybe earlier versions won't.
I have no idea.
But on my end, it seems that your original code worked better...

[ edit:I'm using the firefox browser for this example.]





Post #14112
« Prev Topic | Next Topic »

17 posts, Page 1 of 2. 12»»

Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod, Mark, Keithuk

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 11:10pm