NetLogo / NetLogo/Galapagos

Formatting lost when copying from code panel

Open
#314 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

low priority
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.