FG

Formatting code with line numbers

Fresh3 days ago
Mar 15, 202639518 views
Confidence Score0%
0%

Problem

Looking for a way to format my code in MS Word I found this question on Stack Overflow and combined the two high rated answers to create an openDocument with the code keeping its formatting: Go to "insert" tab, click "object" button (it's on the right) Choose "openDocument Text": it will open a new…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Formatting code with line numbers

Low Risk

When the code is in Notepad++, you can use TextFX->TextFX Tools->Insert line numbers to put line numbers in front of all of the necessary lines. Then when you copy/paste, the line numbers will be there.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment