Windows Live Writer的几种代码插件比较
来源:互联网 发布:淘宝卖家常遇到的问题 编辑:程序博客网 时间:2024/04/30 10:05
1. Code Snippet to Format:
1: HttpPost request = new HttpPost(url);
2: // 先封装一个 JSON 对象
3: JSONObject param = new JSONObject();
4: param.put("name", "rarnu");
5: param.put("password", "123456");
6: // 绑定到请求 Entry
7: StringEntity se = new StringEntity(param.toString());
8: request.setEntity(se);
9: // 发送请求
10: HttpResponse httpResponse = new DefaultHttpClient().execute(request);
11: // 得到应答的字符串,这也是一个 JSON 格式保存的数据
12: String retSrc = EntityUtils.toString(httpResponse.getEntity());
13: // 生成 JSON 对象
14: JSONObject result = new JSONObject( retSrc);
15: String token = result.get("token");
-------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
2. Insert Code(支持少量语言):
HttpPost request = new HttpPost(url); // 先封装一个 JSON 对象 JSONObject param = new JSONObject(); param.put("name", "rarnu"); param.put("password", "123456"); // 绑定到请求 Entry StringEntity se = new StringEntity(param.toString()); request.setEntity(se); // 发送请求 HttpResponse httpResponse = new DefaultHttpClient().execute(request); // 得到应答的字符串,这也是一个 JSON 格式保存的数据 String retSrc = EntityUtils.toString(httpResponse.getEntity()); // 生成 JSON 对象 JSONObject result = new JSONObject( retSrc); String token = result.get("token");
-------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
3. Source Code Format(不能复制):
HttpPost request = new HttpPost(url);
// 先封装一个 JSON 对象
JSONObject param = new JSONObject();
param.put("name", "rarnu");param.put("password", "123456");// 绑定到请求 Entry
StringEntity se = new StringEntity(param.toString());
request.setEntity(se);// 发送请求
HttpResponse httpResponse = new DefaultHttpClient().execute(request);
// 得到应答的字符串,这也是一个 JSON 格式保存的数据
String retSrc = EntityUtils.toString(httpResponse.getEntity());// 生成 JSON 对象
JSONObject result = new JSONObject( retSrc);
String token = result.get("token");
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------4. Insert Source Code Plug-in:HttpPost request = new HttpPost(url); // 先封装一个 JSON 对象 JSONObject param = new JSONObject(); param.put("name", "rarnu"); param.put("password", "123456"); // 绑定到请求 Entry StringEntity se = new StringEntity(param.toString()); request.setEntity(se); // 发送请求 HttpResponse httpResponse = new DefaultHttpClient().execute(request); // 得到应答的字符串,这也是一个 JSON 格式保存的数据 String retSrc = EntityUtils.toString(httpResponse.getEntity()); // 生成 JSON 对象 JSONObject result = new JSONObject( retSrc); String token = result.get("token");----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------5. 插入代码块(可以定制多个BLOG)HttpPost request = new HttpPost(url); // 先封装一个 JSON 对象 JSONObject param = new JSONObject(); param.put("name", "rarnu"); param.put("password", "123456"); // 绑定到请求 Entry StringEntity se = new StringEntity(param.toString()); request.setEntity(se); // 发送请求 HttpResponse httpResponse = new DefaultHttpClient().execute(request); // 得到应答的字符串,这也是一个 JSON 格式保存的数据 String retSrc = EntityUtils.toString(httpResponse.getEntity()); // 生成 JSON 对象 JSONObject result = new JSONObject( retSrc); String token = result.get("token");----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------cnblog效果(较CSDN在第4插件上有优势):http://www.cnblogs.com/dartagnan/archive/2011/04/02/2003895.html51CTO效果(惨不忍睹!!!)http://dadoneo.blog.51cto.com/2908573/534096
- Windows Live Writer的几种代码插件比较
- Windows Live Writer的几种代码插件比较
- Windows Live Writer代码插件测试
- Windows Live Writer插件
- windows Live Writer 插件
- Windows Live Writer插件
- 试用Windows Live Writer的插件功能
- Windows Live Writer 代码添加插件 Syntax4Writer 和 Code Snippet 比较
- 好用的live writer代码插件
- Windows Live Writer 插件安装
- CSDN + Windows Live Writer + 插件
- Windows Live Writer 代码编辑插件Coder High Light
- 使用 Windows Live Writer 代码高亮插件
- Windows Live Writer 和好用的代碼插件
- Windows Live Writer相关文章插件
- Windows Live Writer Code Snippet插件
- Windows Live Writer插件开发经验
- Windows Live Writer插件集萃
- OpenCV实例:对实时视频做人脸检测
- 版本控制常用工具
- gnome 菜单
- “QT学习视频、QT资料和源代码”小菜特别推荐。
- delphi中locate查找方法
- Windows Live Writer的几种代码插件比较
- 假前感。。。。
- boj 1348 网络流,从来没有一个网络流能让我如此泪流满面,这样的建图方式,仰慕dalong
- 插件FoxTab
- SumperMap基本编程
- js中stack overflow at line XX的错误分析
- C# asp.net常见编译|运行错误
- C学习笔记12 getchar()
- 中外对比,灰姑娘的故事,我们可以教育孩子什么