Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Make code stand out


Make code stand out

Author
Message
d.patrick
d.patrick
Forum God
Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)

Group: Forum Members
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.


Mark
Mark
Forum God
Forum God (141K reputation)

Group: Moderators
Posts: 1.1K, Visits: 11K

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

d.patrick
d.patrick
Forum God
Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)Forum God (6.9K reputation)

Group: Forum Members
Posts: 62, Visits: 1

Mark,

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


Booooze
Booooze
Forum God
Forum God (152K reputation)Forum God (152K reputation)Forum God (152K reputation)Forum God (152K reputation)Forum God (152K reputation)Forum God (152K reputation)Forum God (152K reputation)Forum God (152K reputation)Forum God (152K reputation)

Group: Forum Members
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
Admin
Admin
Administrator
Administrator (28K reputation)Administrator (28K reputation)Administrator (28K reputation)Administrator (28K reputation)Administrator (28K reputation)Administrator (28K reputation)Administrator (28K reputation)Administrator (28K reputation)Administrator (28K reputation)

Group: Administrators
Posts: 81, Visits: 1.3K

Hi,

Yes, the upgrade will include code tags.




Best regards,

Forum Administrator
A1VBCode



Keithuk
Keithuk
Forum God
Forum God (297K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
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 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

Edited
12/30/2005 by Keithuk
Mark
Mark
Forum God
Forum God (141K reputation)

Group: Moderators
Posts: 1.1K, Visits: 11K
It still works for me

Option Explicit

Private Sub Command1_Click()
    MsgBox "Seems to work for me"
End Sub

Mark
Mark
Forum God
Forum God (141K reputation)

Group: Moderators
Posts: 1.1K, Visits: 11K
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.
Attachments
syntax.zip (6.1K views, 27.00 KB)
Edited
9/12/2005 by Mark
Mark
Mark
Forum God
Forum God (141K reputation)

Group: Moderators
Posts: 1.1K, Visits: 11K
Here is a Firefox sample
Option Explicit

Private Sub Command1_Click()
    MsgBox "Firefox ignores the div border color"
End Sub

pso
pso
Forum God
Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)

Group: Forum Members
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.w00t

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.]





Tongue

Edited
9/14/2005 by pso
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search