NO

Author Topic: Export source code for use on MS-word ?  (Read 3033 times)

silis

  • Guest
Export source code for use on MS-word ?
« on: February 24, 2010, 04:14:15 PM »
I liked Pelles C and I want to know if there is any way to save the source code as rtf or similar format. The goal is to load it on microsoft word with the commands and comments colored.

Thanks in advance!

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Export source code for use on MS-word ?
« Reply #1 on: February 24, 2010, 05:14:01 PM »
John offers on his webpage http://www.johnfindlay.plus.com/pellesc/addin/addin.html an add-in which can export the source to HTML or PDF.
best regards
 Alex ;)

silis

  • Guest
Re: Export source code for use on MS-word ?
« Reply #2 on: February 24, 2010, 05:47:48 PM »
I compiled the export.c file and I put the produced file (export.dll) in the ...bin/addins folder.
I went at the pelle-c->source and I didn't found any "Export to HTML" menu.

Can you please tell me what is the procedure of installing and using this export.dll file ?

EDIT:
Ok! I found it! I had to go to "Tools->customize" and select "Export C source as HTML".

Now it's working. Thanks!
« Last Edit: February 24, 2010, 05:54:36 PM by silis »

henrin

  • Guest
Re: Export source code for use on MS-word ?
« Reply #3 on: February 27, 2010, 09:10:47 PM »
I have built a tool to export source files as PDF.
The output file is a compressed PDF; it may contain several files with source date&time, line numbering and cross references.

Links:
- sample output: http://perso.numericable.fr/hserindat/snip9707.pdf (many source files with bookmarks; 2 Mbytes),
- help is here (1 page) : http://perso.numericable.fr/hserindat/xprint-en.pdf
- package download is : http://perso.numericable.fr/hserindat/xprint_inst.exe
- html page in french: http://perso.numericable.fr/hserindat


sapero

  • Guest
Re: Export source code for use on MS-word ?
« Reply #4 on: February 28, 2010, 12:28:36 AM »
henrin, could you change the 'bad' Zoom level (current is fit page) to Inherit in all bookmarks?
It's bad, because the reader's preferences are ignored, forcing readers to view with zoom preferred by the writer.
Document properties->page layout is forced too, 'single page' instead 'defaut'.