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.
Hi, just that :) Regards Javi
I would be nice to have it indeed. Maybe someone from the community would like to participate? Should be quite easy job.
Great, adding NETFIX keyword. The thing is to implement a popup menu action in Editors embedding HTML code that would either generate automatically or upon some customization dialog the Lorem Ipsum text so that developer does not have to think something up him/herself. Any taker interested? Thanks!
I will netfix this. I can find 7 paragraphs of "Lorem Ipsum". I'll try an give the user a chance to choose quite how much they need. Is it also reasonable to provide Lorem Ipsum through code templates as well as through a menu?
LI code template doesn't make much sense to me, I would prefere Generate Code action. But if you create the LI customization dialog capable of inserting the LI text at the caret position in html code invoken upon editor popup action, I would be satisfied, adding other triggering points is simple then. Thanks in advance!
Created attachment 94373 [details] new and changed files
Created attachment 94374 [details] differences to existing files
I have coded a patch that uses a code generator to add up to 10 paragraphs of lorem ipsum to an HTML document. Each paragraph is wrapped in <p></p> (default), <div></div> or <span></span> as selected in the dialog. The dialog also indicates the number of words and characters (inc whitespace) that will be inserted into the document (excluding indentation and mark-up). The code also attempts to appropriately indent the inserted text. I noted that the XhtmlIndenterTest was failing although I didn't see how I could have caused this. Is it a known failure?
I should also note that the lorem ipsum text was sourced from wikipedia and that this is noted in the Bundle.properties file that holds the text. Does this need to be recorded anywhere else or is this okay?
Thanks Daniel. Marku, can you please review and integrate the patch?
changeset: 160927:a9de64a99708 date: Mon Feb 22 17:33:41 2010 +0100 summary: #179565 - Feature request: a Lorem Ipsum generator; made by dynamite@netbeans.org http://hg.netbeans.org/web-main/rev/a9de64a99708 Integrated with some some smaller changes. Thank you dynamite for your time and work! Just one notice - I belive you can use the editor indentation API to reindent a piece of code so lot of coding in LIG.findIndent() can be spared. Feel free to do any changes - enhancements or bugfixes - in the related code. Thank you once more!
(In reply to comment #7) > I noted that the XhtmlIndenterTest was failing although I didn't see how I > could have caused this. Is it a known failure? Yes.
Thanks guys. BTW, I am finding out if we can use the text from Wikipedia because any 3rd party source code must either be approved via our internal open source review process or the contributor must sign our CA document.
Integrated into 'main-golden', will be available in build *201002240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a9de64a99708 User: Marek Fukala <mfukala@netbeans.org> Log: #179565 - Feature request: a Lorem Ipsum generator; made by dynamite@netbeans.org