Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Export HTML Code Suggestion
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

blizzaaard
New Member

3 Posts

Posted - Sep 14 2008 :  1:43:24 PM  Show Profile  Reply with Quote
I usually want to paste my code on my blog. I hope VA can export the HTML code of my program which can be more convenient for me, because I don't like to use the tools, such as Syntax Highlighterhttp://code.google.com/p/syntaxhighlighter/

Edited by - blizzaaard on Sep 14 2008 1:44:29 PM

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 15 2008 :  4:53:15 PM  Show Profile  Reply with Quote
Which IDE are you using?
Which programming language are you working in?

If you copy code from the IDE it has syntax colouring in the clipboard. You need to use an editor that understands this coloured clipboard content.

zen is the art of being at one with the two'ness
Go to Top of Page

blizzaaard
New Member

3 Posts

Posted - Sep 16 2008 :  02:48:36 AM  Show Profile  Reply with Quote
It has nothing to do with the IDE and programming language I am using.
What I mean is not all the editor can understand this coloured content as you said, such as the editor in blog. So can you add some HTML codes into the content, which can let the explorer understand the coloured content?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 16 2008 :  07:53:53 AM  Show Profile  Reply with Quote
VC6 and VS2005 use different systems for copying the code to the clipboard. Apparently VS2005 already copies HTML to the clipboard.

Have you tried pasting the code into Word, or some other word processor, so the colouring is preserved, and then exporting this as HTML?

One concern here is that as soon as we try editing the code to insert tags for posting the code online people are going to ask for forum tags rather than HTML tags. A lot of forum systems do not allow you to post HTML, instead you have to use the forum specific tags instead.

zen is the art of being at one with the two'ness
Go to Top of Page

blizzaaard
New Member

3 Posts

Posted - Sep 17 2008 :  04:04:31 AM  Show Profile  Reply with Quote
I've tried pasting the code into Word, but it only preserved the format of VS2008 not that of VA. All of the functions' name are black.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 17 2008 :  6:48:40 PM  Show Profile  Reply with Quote
Yes, you can ask VA to apply its syntax highlighting to the copied code if you are using VC6, but this does not currently work in the newer IDE's. They are placing HTML into the clipboard, which is a lot more work to parse and modify than plain text.

We are considering doing this, but it is not a high priority feature request:

case=170

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000