Create. By modifying existing Word styles, you can display your snippets of codes in a specific style. 2. Create a style and call it ‘code’ In Word, there are built-in styles and themes already available for you to modify and customize according to your needs.