User ID:
Password:
Remember Me:
Forgot Password?
Not a member?
Click here for more information and to register.

    Exporting VB code to RTF or HTML format with Syntax Highlighting



    This simple program enables you to export your VB code in color. Not many examples show how to color VB code into HTML highlighted text - his example shows how to export into both RTF and HTML formatted Text.

    screen-shot

    Simply open the code to export or paste it in the textbox.

    If your aim is to convert it to rtf-format, first push the 'VB Colors' button. Then you save it using the right extension (rtf) or you select all, copy it and paste it in for instance Wordpad or Word.

    If your aim is to convert it to html-format, just save it chosing the htm extension. The program will ask you to give a title for the html-page it generates.

    The program relies upon a separate file, VBKeyW.txt , to provide all of the VB keywords - this could of course be hard-coded into the program.

     
     PROJECT NAME 
      	CodeExport_project.vbp
     
     ENVIRONMENT 
     	This is a VB5 project, which will run under Windows 9x.
     	(it is made under Windows 95b)
     	One extra control is used besides the basic VB-controls
     	namely, the Rich Text Box Control.
     
     YOU CAN LEARN 
     	to parse text into pieces-items
     	assemble html-pages on the fly
     	a minimal use of the Rich Text Box Control
     
     COPYRIGHT 
     	None. I made the code myself and everybody is free
     	to use it.
     
     RUNTIME FILES 
     	CodeExport.exe
     	CodeExpHlp.txt
     	VBKeyW.txt
     
     CODE FILES 
     	CodeExport.vbp/.vbw
     
     	frmCode.frm/.frx
     
     	CodeExp.bas
     	CD_File.bas
     

    Download Zipped Project Files (28k)


    IT Offers


    Top Authors