CKEditor objects and FCKeditor is not the same, can not directly invoke innerHTML and outerHTML, around a large bend, the current node before the insertion of a new node, and then delete the original node ... It's silly, but it solves the problem.
By the way, add an additional option to the Advanced Configuration page "Do not automatically convert hyperlinks," Syntaxhighlighter default will be the URL in the code into hyperlinks, looks very uncomforta
Next we will introduce the editor's KindEditor4.1.4 code highlighting settings: After loading the JS and CSS file editor initialization settings, add prettyPrint to the editor. If you are interested, refer to the editor's official website in this article: http://www.kindsoft.net/
1. The JS and CSS files to be loaded are:
The
A simple UBB editor has just been completed recently. It is the editor used for comments and comments on this blog. Many browser compatibility problems encountered during Javascript writing are recorded here for reference.
When writing JavaScript, try to use methods and attributes in the ecmascript standard.
1. Obtain the selected text in the text box:
If (Document. Selection Document. selection. Type
See the ABC code Editor of the Chinaasp forum? Do you think it's cool? To be honest, I just saw what I thought was a control in some other language, and then I found it was not so mysterious. A few days ago to do a commodity BBS, customer requirements to support UBB, but also to do an editor. Now I'm going to give you some ideas about how to do UBB.
First encount
In most people's eyes, the Technology House gives people the impression that they are silent and cannot fully understand what they think, so they can keep a distance from each other. As a half-programmer, I think the real technology house has been entertaining for most of the time. It is the same as the geeks of most people. programmers also love to joke, I also like cooking and cooking. Although most of them are for decompression, it seems similar to ordinary people.
Different from each other,
I'm using the kindeditor-4.1.5 version.
Link Address: Http://kindeditor.googlecode.com/files/kindeditor-4.1.5.zip
Syntaxhighlighter code highlighting the plugin can be found on the Internet
Steps:
1. Locate the Kindeditor code plug-in's Code.js file (under Editor/plugins/code) and then delete or comment out the two
Add a code instance to the editor background of WordPress to share,
WordPress 3.5 New added a ToolTip function, you can create a prompt box, and then point to any element, such as the following example:
This article will teach you how to create a prompt box like this.
The first step is to add a script to the cue box so that you can use the JS method of the Cue box.
Mount the Cue box script function bing_a
Sublime Text is a powerful and highly extensible IDE that enables code intelligence and autocomplete by installing the Sublimecodeintel plugin for it.Currently the plugin supports the following languages:
JavaScript, Mason, XBL, XUL, RHTML, SCSS, Python, HTML, Ruby, Python3, XML, Sass, XSLT, Django, HTML5, Perl, CSS, Twig, Le SS, Smarty, node. js, Tcl, Templatetoolkit, PHP
Manual Installation1 Get Sublimecodeintel source
CKeditor editor is an upgraded version of FCKeditor.For FCK, it is really easy to use and the loading speed is faster.The following example shows how to obtain the value of the CKeditor editor through JS for form verification.
If (CKEDITOR. instances. content. getData () = ""){Alert ("content cannot be blank! ");Return false;}
Content is the name of textareaNext time I send CKeditor configuration and upload
Last week, we suddenly came up with the idea that what we need can be not a 3D visualization pre-processing software, but a powerful text editor. In this way, you can overcome the disadvantages of long development cycle, large workload, and poor scalability in visual pre-processing. Second, it is very convenient to use and has its own characteristics.
I spent some research on this idea. The initial requirements include:
-Normal Editing: supports both
Syntax Highlight
Syntax Highlight (syntax highlighting) refers to the different content of the text in different colors, fonts and other rendering, in this way, users can quickly find a certain content, in a short time to the full text of the structure of a general understanding. This paper explores how to implement syntax highlighting in JTF.
Premise
Syntax highlighting is a feature that uses different styles to render different content in a piece of text, as shown in the following illustrat
Trick, PHP developed under the Zend Editor, code hints
A single variable, if it is an object, you need to add a comment to the code hint:
@var Daoinit
Daoinit is the name of the class
/** * @var serviceinit */protected $service;
If it is a function, the return is an object, to code hints, the main plus comments:
Currently, the input line blinks to solve the problem.
In order to process the highlighted match, the original text is replaced directly with selectionstart and selectedtext in RT;
First, the text to be processed is processed, saved to the variable in the RTF format, and replaced with the original text position at a time. The effect is improved, but sometimes flashes because the selectionlength range is too large; when a row is changed in the middle, the original row and the new row are replaced
Click Download style file to download and decompress it. In eclipse, choose File> Import> General> preferrences to import the selected file.
Click Download Si configuration file to download and decompress it. In source insight, choose option-> load configuration to import the selected file.
Recommended reason: when the eyes are sore and the Focus cannot be captured by frequently rolling code, it takes some time to configure the style of the
1. Preparatory work(1) The Pycharm version is 2.7 or higher.(2) A project has been created.(3) Creating Python files (alt+insert→pythonfile)2. Generate Source codeFirst, we instantiate a class, and pycharm immediately displays a red light bulb to give a quick completion suggestion:Here we want to create a class that selects the corresponding prompt command, and Pycharm automatically creates a class based on its name:Next we call the member function of this class (in general, once you enter a poi
1. Preparatory work(1) The Pycharm version is 2.7 or higher.(2) A project has been created.(3) Creating Python files (alt+insert→pythonfile)2. Generate Source codeFirst, we instantiate a class, and pycharm immediately displays a red light bulb to give a quick completion suggestion:Here we want to create a class that selects the corresponding prompt command, and Pycharm automatically creates a class based on its name:Next we call the member function of this class (in general, once you enter a poi
Compare the fatal disadvantages of DW with sublime:1. Cannot open multiple folders at the same time (each open folder must first ctrl+shift+n a window or unless all of your project files are in the same folder)2. It is not supported to open the current HTML file by F12 browser.The advantage is to support user settings and provide many pluginsPut settings in this file to override the default settings{"Editor.fontfamily": "Monaco, ' Courier New ', monospace","Editor.fontsize": 16,Line wrapping whe
When editing the Web front-end code There are a lot of editors, how to choose?Some friends said Vscode and Webstorm are too bloated, start slow + eat memory, the development of the whole project used better. But when you modify a file individually, you may find it troublesome.Some friends say notepad++ or sublime is like a notepad, very convenient, suitable for processing a single file.Some friends say that the choice of editors varies from person to
In most people's eyes, the technical curtilage gives the impression that the person is taciturn, always can not penetrate what he thought in mind, keep each other distance. As half of the programmers, I think the real technical house most of the time to find fun, tinker with various ideas, and most people's geek mentality is the same, programmers also love to tell jokes, also like cooking food, although most of it is to reduce the pressure, so it seems that there is nothing different from ordina
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.