Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: kend on October 17, 2009, 06:27:15 pm

Title: copy from editor to include line numbers and highlights
Post by: kend on October 17, 2009, 06:27:15 pm
Ok, I searched the forums for the answer to this and came up empty, but how do I cut and paste my source code (to preserve highlights and line numbers) from the editor to another file? 
Title: Re: copy from editor to include line numbers and highlights
Post by: Jenna on October 17, 2009, 07:30:35 pm
Ok, I searched the forums for the answer to this and came up empty, but how do I cut and paste my source code (to preserve highlights and line numbers) from the editor to another file? 

If you have the source-exporter plugin installed (part of the contrib-plugins), you can use "File -> Export" and export the active file as HTML-, RTF-, ODT- or PDF-file.
Try it and you can see the possible options.
Title: Re: copy from editor to include line numbers and highlights
Post by: kend on October 17, 2009, 09:08:38 pm
Thanks jens,
I don't see any info from Wiki for the source exporter plugin.  Am I supposed to copy the (source exporter) source to my current project and compile it?  Or is this an installed program?  Sorry but I know nothing about plugins.  I currently am using codeblocks 8.2 with the gcc complier and debugger which has the core plugins + 3 wxSmith plugins installed. 
Thanks
Title: Re: copy from editor to include line numbers and highlights
Post by: oBFusCATed on October 17, 2009, 10:24:02 pm
Install the contrib plugins it is there
Title: Re: copy from editor to include line numbers and highlights
Post by: kend on October 18, 2009, 03:46:35 am
I don't see it in the plugin directory?  Maybe I have to download it somewhere?
Title: Re: copy from editor to include line numbers and highlights
Post by: stahta01 on October 18, 2009, 04:34:41 am
I don't see it in the plugin directory?  Maybe I have to download it somewhere?

No one can help you; without knowing the operating system. And if you built or installed Code::Blocks.

Assuming the plugin is installed but disabled; check this
"Plugins" -> "Manage Plugins"
look for "Source Exporter" and enable it if disabled.

Tim S.
Title: Re: copy from editor to include line numbers and highlights
Post by: kend on October 18, 2009, 06:09:47 am
Assuming the plugin is installed but disabled; check this
"Plugins" -> "Manage Plugins"
look for "Source Exporter" and enable it if disabled.



That was the first place I looked.  It's not there.
Title: Re: copy from editor to include line numbers and highlights
Post by: Jenna on October 18, 2009, 08:28:49 am
You still do not tell us which OS you use, but I guess it's windows.

And if I'm right and you use the 8.02-release, just re-run the installer and this time make sure you marked the source-exporter plugin for install.
By the way: I recommend to install all contrib-plugins.
Title: Re: copy from editor to include line numbers and highlights
Post by: kend on October 18, 2009, 07:23:17 pm
Thanks jens,  stupid me, I didn't realize I missed this option when installing.
Thanks again..