Formatting lost when copying from code panel
Nobody has claimed this yet.
- Dominant language
- CoffeeScript
- Stars
- 65
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
In general when I copy part of a web page to Word or a Google Doc the rich text is preserved by default. However, when I copy some NetLogo code in the code panel I always get plain text when pasted. It would be nice to capture the code formatting and colouring without resorting to images.
If I select and copy the entire page then formatting is preserved.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the web page's code panel and its copy behavior, then compare it with copying the entire page as described in the issue. Done means selecting code from the panel and pasting it into Word or Google Docs preserves the code's formatting and colouring rather than producing plain text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- coffeescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100