Typecho Plugin Authoring Tutorial (v): Core code, Typecho plugin
A lot has been said before, now start writing the core code.
Analysis, when publishing the article, we need information is the current article URL, we need to find a way to get him from the $contents, $class.
Currently our plug-in class code is as follows (please note that render was changed to send by me)
Copy the Code code as follows:Class
Premise:Download Plugin HTML Publisher pluginFirst, installationAfter you install HTML Publisher plugin, the option to "Publish HTML reports" appears when you create or edit a project in the "add post-Build action step." As follows:Second, the configurationAfter clicking on the build step above, the configuration item will appear here:Click "Add" to configure, after the configuration, look at the descriptio
) {System.out.println ("Debug:repalceresources Error"); E.printstacktrace (); } }We replace the context Mresources in the Attachbasecontext method of the activity so that we can load the layout in the offline apk.Packaging process for resource filesIf you want to plug-in, you need to understand the Android resource file packaging process, so that each plug-in can be numbered, and then follow the rules to generate r files. For example, take Ctrip dynamicapk as an example, it will plug-i
Download and configure
The official address of the Nerdtree plugin is as follows, you can get the latest version https://github.com/scrooloose/nerdtree download ZIP installation package or use the following website source file installation method
My experimental environment is centos6.6, and other versions may be somewhat different. Installation method is very simple, first download the compressed file, after decompression will be the
/scala2.11/3. Get scala-2.11.8.tgz file after downloadUnzip the downloaded Scala file into the/usr/local folder1 sudo tar -xzvf scala-2.11. 8. Tgz-c/usr/local 4, rename, put the extracted files into the Scala file1 $ cd/usr/23sudomv scala-2.11. 8 Scala5. Add Environment variables1 sudo vim/etc/profile 在最后添加下面内容1 export scala_home=/usr/local/2 export path= $SCALA _home/bin: $PATHMake configuration effective1 source/etc/profile6, check the version, test whether the installation is successful1 $
Now jetty's version has reached 9, and it is already under eclipse. So there are a lot of groupid, such:Org. Eclipse. jetty, org. mortbay. Jetty. These are all usable.
I am using myeclipse and Maven to operate jetty as the development server, which is easier to start and release.
When I run the command:
Jetty: Run
Appears:
[Error] No plugin found for prefix 'jetty 'in the current project and in the plugin g
Compiling a project using Jenkins requires a variety of plugins to rely onInstall the various plugins for Jenkins below:1. Login Jenkins to enter the following interface:2. Click System Management:3. Click the admin plugin:4. Click the Optional plugin to select the plugin you need to install4.1. If you have already downloaded the
The maven dependency of the Maven-jar-plugin plugin is:One: Package runnable jarConfigured to:Assuming that the project has dependencies on other jars, it is necessary for the Maven-dependency-plugin plugin to package other dependencies as well, otherwise. There is no needTwo: Packaging part of the packageSay. I just w
1. In the Pom.xml file, introduce the Wro4j-maven-plugin plugin
ro.isdc.wro4j
wro4j-maven-plugin
${wro4j.version}
optimize-web-resources
compile
Run
false
${project.build.directory}/${project.build.finalname}/static/js
${project.build.directory}/${project.build.finalname}/static/css
This plugin uses UGLIFYJS to compress your JavaScript code. In addition to decoupling it from Webpack, it is the same plugin as the Webpack core plug-in ( webpack.optimize.UglifyJSPlugin ). This allows you to control the version of the uglifyjs you are using.Const Uglifyjsplugin = require (' uglifyjs-webpack-plugin '= { entry: {...}, output: {...}, Module: {..
Photoshop is a very important and powerful tool used by Web designers to make web designers work efficiently and conveniently, as well as provide practical technology for designers ' unrestrained imagination. After the design of our web designer, we need to convert it into a Web Form file, generate HTML and CSS, but there is no such efficient function in Photoshop, but fortunately we can use plug-ins to achieve it. The Photoshop plugin can expand our
Originally wanted to use the ODBC under QT plugin, but found that compiled generated qsqlodbc.lib can not be loaded in the plugin folder, Google on the internet, found the answer, you need to add the following declaration in the source file:
#include Q_import_plugin (QSQLODBC)
Checked the QT Assistant, found that qtplugin is a definition of the macro header file, under the Q_import_plugin macro is def
From the official documentation http://wiki.eclipse.org/M2E_plugin_execution_not_covered, you can understand that the best solution is to hand over to the project aggregator dedicated to the plug-in for processing,
For example, the aspectj-Maven-plugin commonly used in the project uses a dedicated aggregator. You can use eclipse for online search and installation.
However, some plug-ins do not correspond to the project aggregator. At this time, we can
Overview: jquery. Validate. JS is a validation plug-in under jquery.
Official Website: http://bassistance.de/jquery-plugins/jquery-plugin-validation/
Http://download.csdn.net/source/2423908 APIs
Practical Use:
1. Reference jquery basic package and valiedate plug-in packageNote: references cannot be reversed here.
2. Edit the CSS prompt when a verification error occurs.Note: this can be modified according to the specific implementation.
3. Define
jquery plug-in implementation select dropdown box left and right selection _ Exchange content (multiselect2side), Jqueryselect plug-in
:
Use the jquery plugin---multiselect2side practices:
Untitled Document
Super Admin General Administrator Information Publishing Staff Financial Management Officer Product Manager Resource Administrator Administrator
WTP is very convenient to use the Eclipse IDE for Java EE developers, but it is too large and I like to configure on demand. First, let's understand what WTP is. The WTP (Web tools Platform) project expands on the Eclipse platform and is a toolset for developing Java EE WEB applications. WTP contains the following tools: A source editor can be used to edit HTML, Javascript, CSS, JSP, SQL, XML, DTD, XSD, and WSDL. A graphics editor is used to edit the XSD and WSDL. The Java EE Project Bu
Eclipse's approach to adding jquery hints via Spket1. Add online update Source: Help->install New software...->add...->name: "Spket",location:http://www.spket.com/update/
2. Manual installation: To http://www.spket.com/download.html download Plugin version, the current version of the 1.6.18. Download the extract and place it directly in the Eclipse Dropins directory to restart Eclipse.Download Address: http://download.csdn.net/detail/liaoqianwen123/9
The maven dependency of the Maven-jar-plugin plugin is:One: Package the executable jarConfigured to:If the project has dependencies on other jars, the Maven-dependency-plugin plug-in will need to be packaged with other dependencies, otherwise it will not needTwo: Packaging part of the packageFor example, I just want to pack com.lala.api* the following classes, th
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.