Formatted PHP Code in Microsoft Word

I would like to save my php code from nusphere phped color encoded in Microsoft Word. How can i do this?

+4
source share
6 answers

I know one way.

open this page: http://qbnz.com/highlighter/demo.php

the above link is a php syntax shortcut on the net,

(1) copy and paste your php code into the text area with the inscription "Login via text field:"

(2) go to the "Options" selection box below this text area and select "Line Numbers: None"

(3) click "Highlight"! at the bottom of the page

(4) the highlighted php code will be shown

(5) select, copy the highlighted code and paste it into Word. u will see color code in a Word document

those "are detailed steps

hope this helps

+11
source

Take a look at this post here: How do you see code fragments in the format for saving and highlighting MS Word syntax?

I'm not sure if you can do this from this particular development environment, maybe there is a plugin for it. However, this question was asked before.

+4
source

Your color formatting will not be migrated. You have a choice: take a screenshot and paste it as an image (which makes it inaccessible for editing) or lose the color coding and get something functional just not beautiful.

+2
source
+2
source

nusphere does not save color-coded data in copy + paste. Not all (other) other IDEs.

You may be able to paste the code into an online site that performs color coding, and then use copy + paste from there, as it will be generated in static HTML, which will preserve color coding when copying + paste.

The question form on this very site will be an example of a site that works this way, although I would not suggest inserting the code here to paste them into Word - this will not make you popular here !;) But there are other sites that may be better suited for this, or you can grab a free web application that does this and host it locally for your own use.

+1
source

An easy way to do this is to copy the source into a syntax shortcut in a line, for example http://www.tohtml.com/ , and then create html-based highlighting, when copying selected text from an html page, the word will read and understand colors.

+1
source

Source: https://habr.com/ru/post/1346760/


All Articles