Results 1 to 3 of 3

Thread: VB CODE Tags - Code is in one line?

  1. #1

    Thread Starter
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622

    Resolved VB CODE Tags - Code is in one line?

    I was entering some sample code for a user in the vb.net forum

    this code:
    Code:
       Option Strict On ' Optional 
       Option Explicit On  ' Optional
       
       Imports System.Runtime.InteropServices
       
       <ComClass(InterfaceShadows:=True)> _
       Public Class TestClass
       
       	Public Function Test() As String
       		Return "Test"
       	End Function
       
       End Class
    it appears like :


    visual basic code: Option Strict On ' Optional Option Explicit On ' Optional Imports System.Runtime.InteropServices <ComClass(InterfaceShadows:=True)> _ Public Class TestClass Public Function Test() As String Return "Test" End Function End Class

    it also then appears like this in the code editor (after editing or previewing the post):
    Last edited by <ABX; Jan 24th, 2005 at 08:07 AM.
    Tips:
    • Google is your friend! Search before posting!
    • Name your thread appropriately... "I Need Help" doesn't cut it!
    • Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
    • Allways Include the Name and Line of the Exception (if one is occuring!)
    • If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)


    If you think I was helpful, rate my post
    IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: VB CODE Tags - Code is in one line?

    I think there is a bug in the WYSIWYG editior. You need to turn it off if you use the VBCode tags.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: VB CODE Tags - Code is in one line?

    Yes, the WYSIWYG editor currently has an issue with the VBCode tag. The Standard and Basic editors do not. You can change your editor in the User CP options.

    Brad!
    Have you given out your reputation points today? Select the Rate This Post link to give points for good posts!
    -------------------------------------------------------------
    Brad! Jones
    Lots of Software, LLC
    (I wrote: C Programming in One Hour a Day) (Dad Jokes Book) (Follow me on Twitter)

    --------------------------------------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width