Author |
Topic |
|
blizzaaard
New Member
3 Posts |
Posted - Sep 14 2008 : 1:43:24 PM
|
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
19021 Posts |
Posted - Sep 15 2008 : 4:53:15 PM
|
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 |
|
|
blizzaaard
New Member
3 Posts |
Posted - Sep 16 2008 : 02:48:36 AM
|
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? |
|
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Sep 16 2008 : 07:53:53 AM
|
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 |
|
|
blizzaaard
New Member
3 Posts |
Posted - Sep 17 2008 : 04:04:31 AM
|
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. |
|
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Sep 17 2008 : 6:48:40 PM
|
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 |
|
|
|
Topic |
|