MPLAB - Copy Formatted Code

Status
Not open for further replies.

col_implant

New Member
Hi,

Quick Question -
Does anyone know how to copy the formatted code from MPLAB into Word? I have tried simple copy and 'paste special' in word. Unfortunately the 'paste formatted text' option is not available as it is for other types of code (eg Matlab).

Cheers
 
I copy the code from MPLAB into MS visual studio and format it. I then copy the formated code into a document. I have not found a better way.
 

hi,
Just tried 'Select All' in MPLAB and a 'normal' paste into Word, it retains the formatting OK.

What problem do you get.?
 
It is starting to come back to me

A copy from MPLAB is not a rich text sort of copy. I needed text colored by syntax for documentation. I used MS vs to reformat the text and put the color back. It is close to but not exactly that of MPLAB.

I am not sure what the OP is after so this may irrelevant.

3v0
 
Last edited:
I needed text colored by syntax for documentation. A copy from MPLAB is not a rich text sort of copy.

May also be a spaces tab issue but I am not at all sure.

Thanks 3v0, Its the colour he's after not just the text formatting.

The spaces/tabs seem to copy/paste MPLAB/Word OK.
 
Ok ya, most of the formatting is ok. Yea its the colour im hoping to maintain.

Theres a lot of code there, so a reformat in VB is not really an option.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…