Results 1 to 5 of 5

Thread: VB6 Code Formatter for VBForums

Threaded View

  1. #1

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Arrow VB6 Code Formatter for VBForums

    Hi all....

    If you have tried using the VBcode tags for posting codes in this forum, you can see that the end user can't copy it correctly as it can have line numbers and extra spaces when copied.
    So, I thought about creating a custom formatter and asked about it in here: http://www.vbforums.com/showthread.php?t=607914
    Based on the help from that thread (by those amazing guys), I managed to edit and regroup a project of Mark (http://www.a1vbcode.com/vbforums/Topic10851-12-1.aspx).
    Keyword list were copied from koolsid's VB6CodeGenerator Addin

    All credits goes to the respective owners... Thanks to them....

    Here's a demonstration of VBcode tags of the forum as well as the Formatted code...:

    [[ Actual Code ]] (using VBCode tags of this forum)
    vb Code:
    1. Option Explicit
    2.  
    3. '~~~~ VB6 code
    4. Private Sub Command1_Click()
    5.   Dim strTemp As String
    6.   Dim i As Long
    7.  
    8.   For i = 1 To 10
    9.     Debug.Print "Hai Guys...."  '~~~> Print the message
    10.   Next i
    11. End Sub

    [[ Formatted Code ]] (copy-pasted from code generated by my program)
    Code:
    Option Explicit
    
    '~~~~ VB6 code
    Private Sub Command1_Click()
      Dim strTemp As String
      Dim i As Long
      
      For i = 1 To 10
        Debug.Print "Hai Guys...."  '~~~> Print the message
      Next i
    End Sub
    I hope you all will like this code... Feel free to post your comments and suggestions...
    Attached Files Attached Files
    Last edited by akhileshbc; Mar 19th, 2010 at 11:31 PM. Reason: forgot to include the attachment.. :D

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

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