Alien-CodePress
view release on metacpan or search on metacpan
cp/codepress/engines/gecko.js view on Meta::CPAN
}
else if(charCode==118 && evt.ctrlKey) { // handle paste
top.setTimeout(function(){CodePress.syntaxHighlight('generic');},100);
}
else if(charCode==99 && evt.ctrlKey) { // handle cut
//alert(window.getSelection().getRangeAt(0).toString().replace(/\t/g,'FFF'));
}
},
// put cursor back to its original position after every parsing
findString : function() {
if(self.find(cc))
window.getSelection().getRangeAt(0).deleteContents();
},
// split big files, highlighting parts of it
split : function(code,flag) {
if(flag=='scroll') {
this.scrolling = true;
return code;
cp/codepress/engines/msie.js view on Meta::CPAN
else if(keyCode==86 && evt.ctrlKey) { // handle paste
window.clipboardData.setData('Text',window.clipboardData.getData('Text').replace(/\t/g,'\u2008'));
top.setTimeout(function(){CodePress.syntaxHighlight('paste');},10);
}
else if(keyCode==67 && evt.ctrlKey) { // handle cut
// window.clipboardData.setData('Text',x[0]);
// code = window.clipboardData.getData('Text');
}
},
// put cursor back to its original position after every parsing
findString : function() {
range = self.document.body.createTextRange();
if(range.findText(cc)){
range.select();
range.text = '';
}
},
cp/codepress/engines/opera.js view on Meta::CPAN
}
else if((charCode==122||charCode==121||charCode==90) && evt.ctrlKey) { // undo and redo
(charCode==121||evt.shiftKey) ? CodePress.actions.redo() : CodePress.actions.undo();
evt.preventDefault();
}
else if(keyCode==86 && evt.ctrlKey) { // paste
// TODO: pasted text should be parsed and highlighted
}
},
// put cursor back to its original position after every parsing
findString : function() {
var sel = window.getSelection();
var range = window.document.createRange();
var span = window.document.getElementsByTagName('span')[0];
range.selectNode(span);
sel.removeAllRanges();
sel.addRange(range);
span.parentNode.removeChild(span);
//if(self.find(cc))
cp/codepress/license.txt view on Meta::CPAN
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
cp/codepress/license.txt view on Meta::CPAN
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
cp/codepress/license.txt view on Meta::CPAN
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
( run in 0.489 second using v1.01-cache-2.11-cpan-1c8d708658b )