Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Modify “Copy as HTML” to add second HTML data type when writing the clipboard #1103

Copy link
Copy link
@processing-bugs

Description

@processing-bugs
Issue body actions

Original author: PhiLho....@gmail.com (April 28, 2012 09:15:25)

Using Processing 1.5.1 on Windows 7 with Java 1.6.0_31.
I haven't tried the 2.0 alpha yet.

When I copy a script in HTML form, via Edit > Copy as HTML or via Ctrl+Shift+C, I get HTML in the clipboard in textual form. It would be nice to have it also in "HTML Format" (created when copying text from a page in Firefox, IE, etc.), something allowing to paste directly in the edition area of the Zoho forums. It would allow to avoid the View HTML mode which is buggy.

But the main point of this report is that this copy doesn't escape special HTML characters. So, I can see ArrayList<PVector> loosing its generics declaration, and conditions like i<list.size() risk to be lost.
You should escape at least &, < and > to &amp; &lt; and &gt; respectively.

Thanks.

Original issue: http://code.google.com/p/processing/issues/detail?id=1065

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.