The Little Guy Posted April 25, 2009 Share Posted April 25, 2009 I am writing a tutorial in MS Word 2003, is there a way for me to insert a code box, so I can add code into specific portions of the document? Quote Link to comment https://forums.phpfreaks.com/topic/155641-ms-word-code-box/ Share on other sites More sharing options...
Mchl Posted April 25, 2009 Share Posted April 25, 2009 Use monospaced font like Courier New. Quote Link to comment https://forums.phpfreaks.com/topic/155641-ms-word-code-box/#findComment-819190 Share on other sites More sharing options...
.josh Posted April 25, 2009 Share Posted April 25, 2009 yes. You would style it just like how codeboxes are styled on web pages. Only you use the dropdowns and stuff. You can draw a box around it or insert a table. Make the background a certain color if you want. As Mchl pointed out, make the font different. Don't think there's any kind of automatic "syntax highlighting" built-in. Might have to make a script or post on a dummy board somewhere and I think if you c/p the results into ms word the colors should port over too (not 100% on that though...) If not, you'll have to manually do it.. Quote Link to comment https://forums.phpfreaks.com/topic/155641-ms-word-code-box/#findComment-819269 Share on other sites More sharing options...
jcombs_31 Posted April 26, 2009 Share Posted April 26, 2009 I actually love the way office07 has the ribbon set up with your stylesheets. When I've written some documentation for projects I've done I set up specific styles for comment and code sections. Just click a button and that text is wrapped in your style. I know 2003 has stylesheets but not nearly as nice as 07s implementation. Quote Link to comment https://forums.phpfreaks.com/topic/155641-ms-word-code-box/#findComment-819579 Share on other sites More sharing options...
The Little Guy Posted April 27, 2009 Author Share Posted April 27, 2009 I don't care about the color, i just don't want it to auto correct as I type in code. I do want it to auto correct other aspects of the document though. B.T.W. I have MS Word 2003 Quote Link to comment https://forums.phpfreaks.com/topic/155641-ms-word-code-box/#findComment-820601 Share on other sites More sharing options...
Mchl Posted April 27, 2009 Share Posted April 27, 2009 ... I doubt there's a thesaurus for any programming language for MS Word... Thing is... it's word processor not an IDE! Quote Link to comment https://forums.phpfreaks.com/topic/155641-ms-word-code-box/#findComment-820605 Share on other sites More sharing options...
The Little Guy Posted April 27, 2009 Author Share Posted April 27, 2009 Thing is... it's word processor not an IDE! I know, but I need to format text in it, that isn't code Quote Link to comment https://forums.phpfreaks.com/topic/155641-ms-word-code-box/#findComment-820613 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.