Author Topic: copy from editor to include line numbers and highlights  (Read 6845 times)

Offline kend

  • Single posting newcomer
  • *
  • Posts: 6
copy from editor to include line numbers and highlights
« 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? 

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: copy from editor to include line numbers and highlights
« Reply #1 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.

Offline kend

  • Single posting newcomer
  • *
  • Posts: 6
Re: copy from editor to include line numbers and highlights
« Reply #2 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: copy from editor to include line numbers and highlights
« Reply #3 on: October 17, 2009, 10:24:02 pm »
Install the contrib plugins it is there
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline kend

  • Single posting newcomer
  • *
  • Posts: 6
Re: copy from editor to include line numbers and highlights
« Reply #4 on: October 18, 2009, 03:46:35 am »
I don't see it in the plugin directory?  Maybe I have to download it somewhere?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: copy from editor to include line numbers and highlights
« Reply #5 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.
« Last Edit: October 18, 2009, 04:37:56 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline kend

  • Single posting newcomer
  • *
  • Posts: 6
Re: copy from editor to include line numbers and highlights
« Reply #6 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: copy from editor to include line numbers and highlights
« Reply #7 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.

Offline kend

  • Single posting newcomer
  • *
  • Posts: 6
Re: copy from editor to include line numbers and highlights
« Reply #8 on: October 18, 2009, 07:23:17 pm »
Thanks jens,  stupid me, I didn't realize I missed this option when installing.
Thanks again..