This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 24544 - Write action for apisupport to webify code snippets
Summary: Write action for apisupport to webify code snippets
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: apisupport (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Jesse Glick
URL: http://www.netbeans.org/devhome/docs/...
Keywords:
: 21136 (view as bug list)
Depends on: 1588
Blocks:
  Show dependency tree
 
Reported: 2002-06-07 18:38 UTC by Jesse Glick
Modified: 2006-02-14 17:43 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2002-06-07 18:38:05 UTC
Suggest action added to context menu of NB editor
for all MIME types, active when there is a
selected region. Would scan that region for editor
syntax highlighting information (i.e. token
boundaries). Would then generate HTML which
formats that code snippet inside <pre> tags,
escaping '&' etc., with <font class="..."> tags
wrapped around tokens to highlight them. Resulting
HTML would be copied to clipboard for pasting into
an HTML document.

Would be nice to have a reverse action, active
when selected region is inside <pre> tags: strip
out any HTML tags and deescape '&amp;' etc., then
copy to clipboard for pasting back into code samples.

See URL for an example impl in Emacs.

Use: people creating documents using netbeans.css
to include code samples (Java, XML, ...).
Comment 1 Marek Grummich 2002-07-22 08:20:59 UTC
Target milestone was changed from '3.4' to TBD.
Comment 2 Jesse Glick 2002-11-30 17:49:38 UTC
*** Issue 21136 has been marked as a duplicate of this issue. ***
Comment 3 Jesse Glick 2004-03-30 13:42:07 UTC
Probably giving up on this. Editor has a Save as HTML action, so you
can presumably do some search-and-replace on the result to produce a
netbeans.org-friendly snippet. Or, you can just use Emacs and it's easy.
Comment 4 David Strupl 2004-03-30 15:03:16 UTC
He, he, he, you can use emacs for any(and every)thing.