document.write("<div class=\"pastie\">\n");
document.write("  <link href=\"http://pastie.org/stylesheets/embed.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  <link href=\"http://pastie.org/stylesheets/clean.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  \n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("	\n");
document.write("	<div class=\"allcode\">\n");
document.write("		<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n");
document.write("		<tr>\n");
document.write("			<td>\n");
document.write("				\n");
document.write("				<pre class=\"textmate-source-numbers\">1\n");
document.write("2\n");
document.write("3\n");
document.write("4\n");
document.write("5\n");
document.write("6\n");
document.write("7\n");
document.write("8\n");
document.write("9\n");
document.write("10\n");
document.write("11\n");
document.write("12\n");
document.write("13\n");
document.write("14\n");
document.write("15\n");
document.write("16\n");
document.write("17\n");
document.write("18\n");
document.write("19\n");
document.write("20\n");
document.write("21\n");
document.write("22\n");
document.write("23\n");
document.write("24\n");
document.write("25\n");
document.write("26\n");
document.write("27\n");
document.write("28\n");
document.write("29\n");
document.write("30\n");
document.write("31\n");
document.write("32\n");
document.write("33\n");
document.write("34\n");
document.write("35\n");
document.write("36\n");
document.write("37\n");
document.write("38\n");
document.write("39\n");
document.write("40\n");
document.write("41\n");
document.write("42\n");
document.write("43\n");
document.write("44\n");
document.write("45\n");
document.write("46\n");
document.write("47\n");
document.write("48\n");
document.write("49\n");
document.write("50\n");
document.write("51\n");
document.write("52\n");
document.write("53\n");
document.write("54\n");
document.write("55\n");
document.write("56\n");
document.write("57\n");
document.write("58\n");
document.write("59\n");
document.write("60\n");
document.write("61\n");
document.write("62\n");
document.write("63\n");
document.write("64\n");
document.write("65\n");
document.write("66\n");
document.write("67\n");
document.write("68\n");
document.write("69\n");
document.write("70\n");
document.write("71\n");
document.write("72\n");
document.write("73\n");
document.write("74\n");
document.write("75\n");
document.write("76\n");
document.write("77\n");
document.write("78\n");
document.write("79\n");
document.write("80\n");
document.write("81\n");
document.write("82\n");
document.write("83\n");
document.write("84\n");
document.write("85\n");
document.write("86\n");
document.write("87\n");
document.write("88\n");
document.write("89\n");
document.write("90\n");
document.write("91\n");
document.write("92\n");
document.write("93\n");
document.write("94\n");
document.write("95\n");
document.write("96\n");
document.write("97\n");
document.write("98\n");
document.write("99\n");
document.write("100\n");
document.write("101\n");
document.write("102\n");
document.write("103\n");
document.write("104\n");
document.write("105\n");
document.write("106\n");
document.write("107\n");
document.write("108\n");
document.write("109\n");
document.write("110\n");
document.write("111\n");
document.write("112\n");
document.write("113\n");
document.write("114\n");
document.write("115\n");
document.write("116\n");
document.write("117\n");
document.write("118\n");
document.write("119\n");
document.write("120\n");
document.write("121\n");
document.write("122\n");
document.write("123\n");
document.write("124\n");
document.write("125\n");
document.write("126\n");
document.write("127\n");
document.write("128\n");
document.write("129\n");
document.write("130\n");
document.write("131\n");
document.write("132\n");
document.write("133\n");
document.write("134\n");
document.write("135\n");
document.write("136\n");
document.write("137\n");
document.write("138\n");
document.write("139\n");
document.write("140\n");
document.write("141\n");
document.write("142\n");
document.write("143\n");
document.write("144\n");
document.write("145\n");
document.write("146\n");
document.write("147\n");
document.write("148\n");
document.write("149\n");
document.write("150\n");
document.write("151\n");
document.write("152\n");
document.write("153\n");
document.write("154\n");
document.write("155\n");
document.write("156\n");
document.write("157\n");
document.write("158\n");
document.write("159\n");
document.write("160\n");
document.write("161\n");
document.write("162\n");
document.write("163\n");
document.write("164\n");
document.write("165\n");
document.write("166\n");
document.write("167\n");
document.write("168\n");
document.write("169\n");
document.write("170\n");
document.write("171\n");
document.write("172\n");
document.write("173\n");
document.write("174\n");
document.write("175\n");
document.write("176\n");
document.write("177\n");
document.write("178\n");
document.write("179\n");
document.write("180\n");
document.write("181\n");
document.write("182\n");
document.write("183\n");
document.write("184\n");
document.write("185\n");
document.write("186\n");
document.write("187\n");
document.write("188\n");
document.write("189\n");
document.write("190\n");
document.write("191\n");
document.write("192\n");
document.write("193\n");
document.write("194\n");
document.write("195\n");
document.write("196\n");
document.write("197\n");
document.write("198\n");
document.write("199\n");
document.write("200\n");
document.write("201\n");
document.write("202\n");
document.write("203\n");
document.write("204\n");
document.write("205\n");
document.write("206\n");
document.write("207\n");
document.write("208\n");
document.write("209\n");
document.write("210\n");
document.write("211\n");
document.write("212\n");
document.write("213\n");
document.write("214\n");
document.write("215\n");
document.write("216\n");
document.write("217\n");
document.write("218\n");
document.write("219\n");
document.write("220\n");
document.write("221\n");
document.write("222\n");
document.write("223\n");
document.write("224\n");
document.write("225\n");
document.write("226\n");
document.write("227\n");
document.write("228\n");
document.write("229\n");
document.write("230\n");
document.write("231\n");
document.write("232\n");
document.write("233\n");
document.write("234\n");
document.write("235\n");
document.write("236\n");
document.write("237\n");
document.write("238\n");
document.write("239\n");
document.write("240\n");
document.write("241\n");
document.write("242\n");
document.write("243\n");
document.write("244\n");
document.write("245\n");
document.write("246\n");
document.write("247\n");
document.write("248\n");
document.write("249\n");
document.write("250\n");
document.write("251\n");
document.write("252\n");
document.write("253\n");
document.write("254\n");
document.write("255\n");
document.write("256\n");
document.write("257\n");
document.write("258\n");
document.write("259\n");
document.write("260\n");
document.write("261\n");
document.write("262\n");
document.write("263\n");
document.write("264\n");
document.write("265\n");
document.write("266\n");
document.write("267\n");
document.write("268\n");
document.write("269\n");
document.write("270\n");
document.write("271\n");
document.write("272\n");
document.write("273\n");
document.write("274\n");
document.write("275\n");
document.write("276\n");
document.write("277\n");
document.write("278\n");
document.write("279\n");
document.write("280\n");
document.write("281\n");
document.write("282\n");
document.write("283\n");
document.write("284\n");
document.write("285\n");
document.write("286\n");
document.write("287\n");
document.write("288\n");
document.write("289\n");
document.write("290\n");
document.write("291\n");
document.write("292\n");
document.write("293\n");
document.write("294\n");
document.write("295\n");
document.write("296\n");
document.write("297\n");
document.write("298\n");
document.write("299\n");
document.write("300\n");
document.write("301\n");
document.write("302\n");
document.write("303\n");
document.write("304\n");
document.write("305\n");
document.write("306\n");
document.write("307\n");
document.write("308\n");
document.write("309\n");
document.write("310\n");
document.write("311\n");
document.write("312\n");
document.write("313\n");
document.write("314\n");
document.write("315\n");
document.write("316\n");
document.write("317\n");
document.write("318\n");
document.write("319\n");
document.write("320\n");
document.write("321\n");
document.write("322\n");
document.write("323\n");
document.write("324\n");
document.write("325\n");
document.write("326\n");
document.write("327\n");
document.write("328\n");
document.write("329\n");
document.write("330\n");
document.write("331\n");
document.write("332\n");
document.write("333\n");
document.write("334\n");
document.write("335\n");
document.write("336\n");
document.write("337\n");
document.write("338\n");
document.write("339\n");
document.write("340\n");
document.write("341\n");
document.write("342\n");
document.write("343\n");
document.write("344\n");
document.write("345\n");
document.write("346\n");
document.write("347\n");
document.write("348\n");
document.write("349\n");
document.write("350\n");
document.write("351\n");
document.write("352\n");
document.write("353\n");
document.write("354\n");
document.write("355\n");
document.write("356\n");
document.write("357\n");
document.write("358\n");
document.write("359\n");
document.write("360\n");
document.write("361\n");
document.write("362\n");
document.write("363\n");
document.write("364\n");
document.write("365\n");
document.write("366\n");
document.write("<\/pre>\n");
document.write("			<\/td>\n");
document.write("		<td>\n");
document.write("		<pre class=\"textmate-source\"><pre class=\"sunburst\"><span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot; Requirements:<\/span>\n");
document.write("<span class=\"String\">&quot;<\/span>   <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span> you<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'ll need VIM compiled with Ruby scripting support<\/span>\n");
document.write("<span class=\"String\">&quot;     - example: for Debian/Ubuntu: sudo apt-get install vim-ruby<\/span>\n");
document.write("<span class=\"String\">&quot;   - please, copy this file to one of your VIM dir<\/span>\n");
document.write("<span class=\"String\">&quot;     - example: to your .vim home folder: $HOME/.vim/vimlog.vim<\/span>\n");
document.write("<span class=\"String\">&quot;   - please, add this code to your .vimrc file:<\/span>\n");
document.write("<span class=\"String\">&quot;<\/span>\n");
document.write("<span class=\"String\">&quot;       if !exists(\'<\/span><span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>*<\/span><span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Wordpress_vim<\/span><span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\')<\/span>\n");
document.write("<span class=\"String\">&quot;         runtime vimlog.vim<\/span>\n");
document.write("<span class=\"String\">&quot;       endif<\/span>\n");
document.write("<span class=\"String\">&quot;<\/span>\n");
document.write("<span class=\"String\">&quot;   - change your blog login/password info on the get_personal_data<\/span>\n");
document.write("<span class=\"String\">&quot;     function bellow. <\/span>\n");
document.write("<span class=\"String\">&quot;   - make sure you have xmlrpc.php file in your / blog dir. If not, <\/span>\n");
document.write("<span class=\"String\">&quot;     change the @xml variable to find it.<\/span>\n");
document.write("<span class=\"String\">&quot;   - testing: open vim, and do <\/span>\n");
document.write("<span class=\"String\">&quot;       :Blog rp <\/span>\n");
document.write("<span class=\"String\">&quot;     to get your recent 10 posts.<\/span>\n");
document.write("<span class=\"String\">&quot;   - Questions ? e-mail please ;)<\/span>\n");
document.write("<span class=\"String\">&quot;   - Using it ? please, leave a word ;)<\/span>\n");
document.write("<span class=\"String\"><\/span>\n");
document.write("<span class=\"String\"><\/span>\n");
document.write("<span class=\"String\">if !has(\'<\/span>ruby<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\')<\/span>\n");
document.write("<span class=\"String\">    echo &quot;---------------------------------------&quot;<\/span>\n");
document.write("<span class=\"String\">    echo &quot;Error: Required vim compiled with +ruby&quot;<\/span>\n");
document.write("<span class=\"String\">    echo &quot;---------------------------------------&quot;<\/span>\n");
document.write("<span class=\"String\">    finish<\/span>\n");
document.write("<span class=\"String\">endif<\/span>\n");
document.write("<span class=\"String\"><\/span>\n");
document.write("<span class=\"String\">&quot; Vim syntax functions<\/span>\n");
document.write("<span class=\"String\">&quot; Language:     wordpress_vim<\/span>\n");
document.write("<span class=\"String\">&quot; Maintainer:   pedro mg &lt;pedro.mota [at] gmail.com&gt;<\/span>\n");
document.write("<span class=\"String\">&quot; Version:      1.1<\/span>\n");
document.write("<span class=\"String\">&quot; Last Change:  2008 Apr 10<\/span>\n");
document.write("<span class=\"String\">&quot; Remark:       Simple functions for vim blogging bundle in ruby.<\/span>\n");
document.write("<span class=\"String\">&quot; Remark:       Please, if you fine tune this code, send it back  <\/span>\n");
document.write("<span class=\"String\">&quot; Remark:       for version upgrade ;)<\/span>\n");
document.write("<span class=\"String\"><\/span>\n");
document.write("<span class=\"String\">function! Blog_syn_hl()    &quot; {{{2<\/span>\n");
document.write("<span class=\"String\">  :syntax clear<\/span>\n");
document.write("<span class=\"String\">  :syntax keyword wpType Post Title Date<\/span>\n");
document.write("<span class=\"String\">  :syntax region wpTitle start=/&quot;/ end=/$/ <\/span>\n");
document.write("<span class=\"String\">  :syntax region wpPostId start=/\\[/ end=/\\]/ <\/span>\n");
document.write("<span class=\"String\">  :highlight wpType ctermfg=Green guifg=LightGreen<\/span>\n");
document.write("<span class=\"String\">  :highlight wpTitle cterm=bold ctermfg=Blue guifg=Blue guibg=LightCyan gui=bold<\/span>\n");
document.write("<span class=\"String\">  :highlight wpPostId ctermfg=Red guifg=Red<\/span>\n");
document.write("<span class=\"String\">endfunction<\/span>\n");
document.write("<span class=\"String\">&quot; }}}2<\/span>\n");
document.write("<span class=\"String\"><\/span>\n");
document.write("<span class=\"String\">function! Post_syn_hl()    &quot; {{{3<\/span>\n");
document.write("<span class=\"String\">  :syntax clear<\/span>\n");
document.write("<span class=\"String\">  :runtime! syntax/html.vim   &quot; content syntax is html hl, except for headers<\/span>\n");
document.write("<span class=\"String\">  :syntax keyword wpType Post Title Date Author Link Permalink Allow Comments Allow Pings Categs  <\/span>\n");
document.write("<span class=\"String\">  :syntax region wpPostId start=/\\[/ end=/\\]/ contained<\/span>\n");
document.write("<span class=\"String\">  :syntax match wpFields /: .*/hs=s+2 contains=wpPostId <\/span>\n");
document.write("<span class=\"String\">  :highlight wpType ctermfg=Green guifg=LightGreen gui=bold<\/span>\n");
document.write("<span class=\"String\">  :highlight wpPostId ctermfg=Red guifg=Red<\/span>\n");
document.write("<span class=\"String\">  :highlight wpFields ctermfg=Blue guifg=Blue guibg=LightCyan<\/span>\n");
document.write("<span class=\"String\">endfunction<\/span>\n");
document.write("<span class=\"String\">&quot; }}}3<\/span>\n");
document.write("<span class=\"String\"><\/span>\n");
document.write("<span class=\"String\">&quot; Vim blogging function<\/span>\n");
document.write("<span class=\"String\">&quot; Language:     vim script <\/span>\n");
document.write("<span class=\"String\">&quot; Interface:    ruby<\/span>\n");
document.write("<span class=\"String\">&quot; Maintainer:   pedro mg &lt;pedro.mota [at] gmail.com&gt;<\/span>\n");
document.write("<span class=\"String\">&quot; Version:      1.0<\/span>\n");
document.write("<span class=\"String\">&quot; Last Change:  2007 Mar 02<\/span>\n");
document.write("<span class=\"String\">&quot; Remark:       script function for vim blogging bundle in ruby.<\/span>\n");
document.write("<span class=\"String\">&quot; Remark:       Please, if you fine tune this code, send it back  <\/span>\n");
document.write("<span class=\"String\">&quot; Remark:       for version upgrade ;)<\/span>\n");
document.write("<span class=\"String\"><\/span>\n");
document.write("<span class=\"String\">:command -nargs=* Blog call Wordpress_vim(&lt;f-args&gt;)<\/span>\n");
document.write("<span class=\"String\"><\/span>\n");
document.write("<span class=\"String\">function! Wordpress_vim(start, ...)    &quot; {{{1<\/span>\n");
document.write("<span class=\"String\">  call Blog_syn_hl() &quot; comment if you don\'<\/span>t wish syntax highlight activation\n");
document.write("  try\n");
document.write("ruby <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_augmented keyword_operator_assignment_augmented_ruby\'>&lt;&lt;<\/span><span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>EOF<\/span>\n");
document.write("  <span class=\'meta meta_require meta_require_ruby\'><span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>require<\/span> <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'xmlrpc/client.rb\'<\/span><\/span>\n");
document.write("  <span class=\'meta meta_require meta_require_ruby\'><span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>require<\/span> <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'time.rb\'<\/span><\/span>\n");
document.write("<span class=\'meta meta_class meta_class_ruby\'>  <span class=\'keyword keyword_control keyword_control_class keyword_control_class_ruby\'>class<\/span> <span class=\'entity entity_name entity_name_type entity_name_type_class entity_name_type_class_ruby\'>Wp_vim<\/span><\/span>\n");
document.write("\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #######<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # class initialization. Instantiates the @blog class variable to<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # retain blog site information for future api calls<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #<\/span>\n");
document.write("    <span class=\'meta meta_function meta_function_method meta_function_method_without-arguments meta_function_method_without-arguments_ruby\'><span class=\'keyword keyword_control keyword_control_def keyword_control_def_ruby\'>def<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>initialize<\/span><\/span>\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>begin<\/span>\n");
document.write("        get_personal_data\n");
document.write("        <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@blog<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'support support_class support_class_ruby\'>XMLRPC<\/span>::<span class=\'support support_class support_class_ruby\'>Client<\/span>.<span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>new<\/span>(<span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@site<\/span>, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@xml<\/span>, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@port<\/span>)\n");
document.write("        <span class=\'variable variable_language variable_language_ruby\'>self<\/span>.send(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;blog_&quot;<\/span><span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>+<\/span><span class=\'support support_class support_class_ruby\'>VIM<\/span>::evaluate(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;a:start&quot;<\/span>))\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>rescue<\/span> <span class=\'support support_class support_class_ruby\'>XMLRPC<\/span>::<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>FaultException<\/span> =&gt; e\n");
document.write("        xmlrpc_flt_xcptn(e)\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("    <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #######<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # class variables for personnal data. Please *change* them accordingly.<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # CHANGE HERE:<\/span>\n");
document.write("    <span class=\'meta meta_function meta_function_method meta_function_method_without-arguments meta_function_method_without-arguments_ruby\'><span class=\'keyword keyword_control keyword_control_def keyword_control_def_ruby\'>def<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>get_personal_data<\/span><\/span>  \n");
document.write("      <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@login<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;&quot;<\/span> <span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'># insert your login here<\/span>\n");
document.write("      <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@passwd<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;&quot;<\/span> <span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'># insert your password here<\/span>\n");
document.write("      <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@site<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;&quot;<\/span> <span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'># insert your blog url here, but do not use http://<\/span>\n");
document.write("      <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@xml<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;/xmlrpc.php&quot;<\/span> <span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'># change if necessary<\/span>\n");
document.write("      <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@port<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'constant constant_numeric constant_numeric_ruby\'>80<\/span> <span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'># change if necessary<\/span>\n");
document.write("      <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@blog_id<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'constant constant_numeric constant_numeric_ruby\'>0<\/span>\n");
document.write("      <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@user<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span>  <span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>\n");
document.write("    <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("    <span class=\'meta meta_function meta_function_method meta_function_method_without-arguments meta_function_method_without-arguments_ruby\'><span class=\'keyword keyword_control keyword_control_def keyword_control_def_ruby\'>def<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>get_post_content<\/span><\/span>\n");
document.write("      post_content <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> {}\n");
document.write("      new_post <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[<span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>][<span class=\'constant constant_numeric constant_numeric_ruby\'>0<\/span>..<span class=\'constant constant_numeric constant_numeric_ruby\'>4<\/span>].upcase <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>==<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Title&quot;<\/span>.upcase\n");
document.write("      post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'new_post\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> new_post\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>case<\/span> new_post\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>when<\/span> <span class=\'constant constant_language constant_language_ruby\'>true<\/span>\n");
document.write("        post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'title\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> (<span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[<span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>]).gsub(<span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>Title *:<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'\'<\/span>).strip\n");
document.write("        post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'dateCreated\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'support support_class support_class_ruby\'>Time<\/span>.parse(((<span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[<span class=\'constant constant_numeric constant_numeric_ruby\'>2<\/span>]).gsub(<span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>Date *:<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'\'<\/span>)).strip)\n");
document.write("        post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'mt_allow_comments\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> (<span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[<span class=\'constant constant_numeric constant_numeric_ruby\'>3<\/span>]).gsub(<span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>Comments *:<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'\'<\/span>)\n");
document.write("        post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'mt_allow_pings\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> (<span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[<span class=\'constant constant_numeric constant_numeric_ruby\'>4<\/span>]).gsub(<span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>Pings *:<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'\'<\/span>)\n");
document.write("        post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'categories\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> (<span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[<span class=\'constant constant_numeric constant_numeric_ruby\'>5<\/span>]).gsub(<span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>Categs *:<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'\'<\/span>).split\n");
document.write("        body <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> [] <span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'># from line 8 to the end, grab the post body content<\/span>\n");
document.write("        <span class=\'constant constant_numeric constant_numeric_ruby\'>8<\/span>.upto(<span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current.count) {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span>|<span class=\'variable variable_other variable_other_block variable_other_block_ruby\'>line<\/span>| body <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_augmented keyword_operator_assignment_augmented_ruby\'>&lt;&lt;<\/span> <span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[line] }\n");
document.write("  post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'description\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> body.join(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;<span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\r<\/span>&quot;<\/span>)\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>else<\/span>\n");
document.write("        post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_id\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> ((<span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[<span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>]).gsub(<span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>Post.*<span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\[<\/span><\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'\'<\/span>)).strip.chop\n");
document.write("        post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'title\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> (<span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[<span class=\'constant constant_numeric constant_numeric_ruby\'>2<\/span>]).gsub(<span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>Title *:<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'\'<\/span>)\n");
document.write("        post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'dateCreated\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'support support_class support_class_ruby\'>Time<\/span>.parse(((<span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[<span class=\'constant constant_numeric constant_numeric_ruby\'>3<\/span>]).gsub(<span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>Date *:<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'\'<\/span>)).strip)\n");
document.write("        post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'mt_allow_comments\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> (<span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[<span class=\'constant constant_numeric constant_numeric_ruby\'>7<\/span>]).gsub(<span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>Comments *:<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'\'<\/span>)\n");
document.write("        post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'mt_allow_pings\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> (<span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[<span class=\'constant constant_numeric constant_numeric_ruby\'>8<\/span>]).gsub(<span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>Pings *:<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'\'<\/span>)\n");
document.write("        post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'categories\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> (<span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[<span class=\'constant constant_numeric constant_numeric_ruby\'>9<\/span>]).gsub(<span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>Categs *:<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'\'<\/span>).split \n");
document.write("  body <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> [] <span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'># from line 11 to the end, grab the post body content<\/span>\n");
document.write("        <span class=\'constant constant_numeric constant_numeric_ruby\'>11<\/span>.upto(<span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current.count) {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span>|<span class=\'variable variable_other variable_other_block variable_other_block_ruby\'>line<\/span>| body <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_augmented keyword_operator_assignment_augmented_ruby\'>&lt;&lt;<\/span> <span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current[line] }\n");
document.write("  post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'description\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> body.join(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;<span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\r<\/span>&quot;<\/span>)\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("      post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'mt_exceprt\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'\'<\/span>\n");
document.write("      post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'mt_text_more\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'\'<\/span>\n");
document.write("      post_content[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'mt_tb_ping_urls\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> []\n");
document.write("      <span class=\'keyword keyword_control keyword_control_pseudo-method keyword_control_pseudo-method_ruby\'>return<\/span> post_content\n");
document.write("    <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>  \n");
document.write("\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #######<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # publish the post. Verifies if it is new post, or an editied existing one.<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #<\/span>\n");
document.write("    <span class=\'meta meta_function meta_function_method meta_function_method_without-arguments meta_function_method_without-arguments_ruby\'><span class=\'keyword keyword_control keyword_control_def keyword_control_def_ruby\'>def<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>blog_publish<\/span><\/span>\n");
document.write("      p <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> get_post_content\n");
document.write("      resp <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> blog_api(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;publish&quot;<\/span>, p, <span class=\'constant constant_language constant_language_ruby\'>true<\/span>, p[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'new_post\'<\/span>]) \n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>if<\/span> (p[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'new_post\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_logical keyword_operator_logical_ruby\'>and<\/span> resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_id\'<\/span>])\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>then<\/span>\n");
document.write("        <span class=\'support support_class support_class_ruby\'>VIM<\/span>::command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;enew!&quot;<\/span>)\n");
document.write("        <span class=\'support support_class support_class_ruby\'>VIM<\/span>::command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Blog gp <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_id\'<\/span>]}<\/span>&quot;<\/span>)\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("    <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #######<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # save post as draft. Verifies if it is new post, or an editied existing one.<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #<\/span>\n");
document.write("    <span class=\'meta meta_function meta_function_method meta_function_method_without-arguments meta_function_method_without-arguments_ruby\'><span class=\'keyword keyword_control keyword_control_def keyword_control_def_ruby\'>def<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>blog_draft<\/span><\/span>\n");
document.write("      p <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> get_post_content\n");
document.write("      resp <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> blog_api(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;draft&quot;<\/span>, p, <span class=\'constant constant_language constant_language_ruby\'>false<\/span>, p[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'new_post\'<\/span>]) \n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>if<\/span> (p[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'new_post\'<\/span>] <span class=\'keyword keyword_operator keyword_operator_logical keyword_operator_logical_ruby\'>and<\/span> resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_id\'<\/span>])\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>then<\/span>\n");
document.write("        <span class=\'support support_class support_class_ruby\'>VIM<\/span>::command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;enew!&quot;<\/span>)\n");
document.write("        <span class=\'support support_class support_class_ruby\'>VIM<\/span>::command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Blog gp <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_id\'<\/span>]}<\/span>&quot;<\/span>)\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("    <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #######<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # new post. Creates a template for a new post.<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #<\/span>\n");
document.write("    <span class=\'meta meta_function meta_function_method meta_function_method_without-arguments meta_function_method_without-arguments_ruby\'><span class=\'keyword keyword_control keyword_control_def keyword_control_def_ruby\'>def<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>blog_np<\/span><\/span>\n");
document.write("      <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@post_date<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> same_dt_fmt(<span class=\'support support_class support_class_ruby\'>Time<\/span>.now)\n");
document.write("      <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@post_author<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@user<\/span>\n");
document.write("      <span class=\'support support_class support_class_ruby\'>VIM<\/span>::command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;call Post_syn_hl()&quot;<\/span>)\n");
document.write("      v <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Title    : &quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Date     : <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{<span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@post_date<\/span>}<\/span>&quot;<\/span>)  \n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Comments : 1&quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Pings    : 1&quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Categs   : &quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot; &quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot; &quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;&lt;type from here...&gt; &quot;<\/span>)\n");
document.write("    <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #######<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # list of categories. Is opened in a new temporary window, because may me for assistance on<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # creating/editing a post.<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #<\/span>\n");
document.write("    <span class=\'meta meta_function meta_function_method meta_function_method_without-arguments meta_function_method_without-arguments_ruby\'><span class=\'keyword keyword_control keyword_control_def keyword_control_def_ruby\'>def<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>blog_cl<\/span><\/span>\n");
document.write("      resp <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> blog_api(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;cl&quot;<\/span>)\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>      # create a new window with syntax highlight.<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>      # this allows you to rapidelly close the window (:q!) and continue blogging.<\/span>\n");
document.write("      <span class=\'support support_class support_class_ruby\'>VIM<\/span>::command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;:new&quot;<\/span>)\n");
document.write("      <span class=\'support support_class support_class_ruby\'>VIM<\/span>::command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;call Blog_syn_hl()&quot;<\/span>)\n");
document.write("      <span class=\'support support_class support_class_ruby\'>VIM<\/span>::command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;:set wrap&quot;<\/span>)\n");
document.write("      v <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current\n");
document.write("      v.append(v.count, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;CATEGORIES LIST: &quot;<\/span>)\n");
document.write("      v.append(v.count, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot; &quot;<\/span>)\n");
document.write("      v.append(v.count, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;<span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\&quot;<\/span><span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{resp.join(<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'  \'<\/span>)}<\/span><span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\&quot;<\/span>&quot;<\/span>)\n");
document.write("    <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #######<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # recent [num] posts. Gets some info for the most recent [num] or 10 posts<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #<\/span>\n");
document.write("    <span class=\'meta meta_function meta_function_method meta_function_method_without-arguments meta_function_method_without-arguments_ruby\'><span class=\'keyword keyword_control keyword_control_def keyword_control_def_ruby\'>def<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>blog_rp<\/span><\/span>\n");
document.write("      <span class=\'support support_class support_class_ruby\'>VIM<\/span>::evaluate(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;a:0&quot;<\/span>).to_i <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span> <span class=\'constant constant_numeric constant_numeric_ruby\'>0<\/span> <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>?<\/span> ((num <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'support support_class support_class_ruby\'>VIM<\/span>::evaluate(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;a:1&quot;<\/span>)).to_i <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>?<\/span> num.to_i : num <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'constant constant_numeric constant_numeric_ruby\'>10<\/span>) : num <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'constant constant_numeric constant_numeric_ruby\'>10<\/span>\n");
document.write("      resp <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> blog_api(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;rp&quot;<\/span>, num)\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>      # create a new window with syntax highlight.<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>      # this allows you to rapidely close the window (:q!) and get that post id.<\/span>\n");
document.write("      <span class=\'support support_class support_class_ruby\'>VIM<\/span>::command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;:new&quot;<\/span>)\n");
document.write("      <span class=\'support support_class support_class_ruby\'>VIM<\/span>::command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;call Blog_syn_hl()&quot;<\/span>)\n");
document.write("      v <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current\n");
document.write("      v.append(v.count, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;MOST RECENT <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{num}<\/span> POSTS: &quot;<\/span>)\n");
document.write("      v.append(v.count, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot; &quot;<\/span>)\n");
document.write("      resp.each {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span>|<span class=\'variable variable_other variable_other_block variable_other_block_ruby\'>r<\/span>|\n");
document.write("        v.append(v.count, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Post : [<span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{r[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_id\'<\/span>]}<\/span>]  Date: <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{r[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_date\'<\/span>]}<\/span>&quot;<\/span>)\n");
document.write("        v.append(v.count, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Title: <span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\&quot;<\/span><span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{r[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_title\'<\/span>]}<\/span><span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\&quot;<\/span>&quot;<\/span>)\n");
document.write("        v.append(v.count, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot; &quot;<\/span>)\n");
document.write("      }\n");
document.write("    <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #######<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # get post [id]. Fetches blog post with id [id], or the last one.<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #<\/span>\n");
document.write("    <span class=\'meta meta_function meta_function_method meta_function_method_without-arguments meta_function_method_without-arguments_ruby\'><span class=\'keyword keyword_control keyword_control_def keyword_control_def_ruby\'>def<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>blog_gp<\/span><\/span>\n");
document.write("      <span class=\'support support_class support_class_ruby\'>VIM<\/span>::command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;call Post_syn_hl()&quot;<\/span>)\n");
document.write("      <span class=\'support support_class support_class_ruby\'>VIM<\/span>::evaluate(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;a:0&quot;<\/span>).to_i <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span> <span class=\'constant constant_numeric constant_numeric_ruby\'>0<\/span> <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>?<\/span> ((id <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'support support_class support_class_ruby\'>VIM<\/span>::evaluate(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;a:1&quot;<\/span>)) <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>?<\/span> id : id <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'constant constant_language constant_language_ruby\'>nil<\/span>) : id <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'constant constant_language constant_language_ruby\'>nil<\/span>\n");
document.write("      resp <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> blog_api(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;gp&quot;<\/span>, id)\n");
document.write("      v <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'support support_class support_class_ruby\'>VIM<\/span>::<span class=\'support support_class support_class_ruby\'>Buffer<\/span>.current\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Post     : [<span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_id\'<\/span>]}<\/span>]&quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Title    : <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_title\'<\/span>]}<\/span>&quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Date     : <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_date\'<\/span>]}<\/span>&quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Link     : <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_link\'<\/span>]}<\/span>&quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Permalink: <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_permaLink\'<\/span>]}<\/span>&quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Author   : <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_author\'<\/span>]}<\/span>&quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Comments : <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_allow_comments\'<\/span>]}<\/span>&quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Pings    : <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_allow_pings\'<\/span>]}<\/span>&quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Categs   : <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_categories\'<\/span>]}<\/span>&quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot; &quot;<\/span>)\n");
document.write("      v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot; &quot;<\/span>)\n");
document.write("      resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_body\'<\/span>].each_line {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span>|<span class=\'variable variable_other variable_other_block variable_other_block_ruby\'>l<\/span>| v.append(v.count<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>-<\/span><span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, l.strip)}\n");
document.write("    <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #######<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # delete post with id [id]. Asks for confirmation first<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #<\/span>\n");
document.write("    <span class=\'meta meta_function meta_function_method meta_function_method_without-arguments meta_function_method_without-arguments_ruby\'><span class=\'keyword keyword_control keyword_control_def keyword_control_def_ruby\'>def<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>blog_del<\/span><\/span>\n");
document.write("      <span class=\'support support_class support_class_ruby\'>VIM<\/span>::evaluate(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;a:0&quot;<\/span>).to_i <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span> <span class=\'constant constant_numeric constant_numeric_ruby\'>0<\/span> <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>?<\/span> ((id <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'support support_class support_class_ruby\'>VIM<\/span>::evaluate(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;a:1&quot;<\/span>)) <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>?<\/span> id : id <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'constant constant_language constant_language_ruby\'>nil<\/span>) : id <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'constant constant_language constant_language_ruby\'>nil<\/span>\n");
document.write("      resp <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> blog_api(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;del&quot;<\/span>, id)\n");
document.write("      resp <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>?<\/span> <span class=\'support support_class support_class_ruby\'>VIM<\/span>.command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;echo <span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\&quot;<\/span>Blog post #<span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{id}<\/span> successfully deleted<span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\&quot;<\/span>&quot;<\/span>) : <span class=\'support support_class support_class_ruby\'>VIM<\/span>.command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;echo <span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\&quot;<\/span>Deletion problem for post id #<span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{id}<\/span><span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\&quot;<\/span>&quot;<\/span>)\n");
document.write("    <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #######<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # api calls. Allways returns an hash so that if api is changed, only this<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # function needs to be changed. One can use between Blogger, metaWeblog or<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # MovableType very easilly. <\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #<\/span>\n");
document.write("    <span class=\'meta meta_function meta_function_method meta_function_method_with-arguments meta_function_method_with-arguments_ruby\'><span class=\'keyword keyword_control keyword_control_def keyword_control_def_ruby\'>def<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>blog_api<\/span>(<span class=\'variable variable_parameter variable_parameter_function variable_parameter_function_ruby\'>fn_api, <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>*<\/span>args<\/span>)<\/span>\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>begin<\/span>\n");
document.write("        <span class=\'keyword keyword_control keyword_control_ruby\'>case<\/span> fn_api\n");
document.write("\n");
document.write("        <span class=\'keyword keyword_control keyword_control_ruby\'>when<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;gp&quot;<\/span>\n");
document.write("          resp <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@blog<\/span>.call(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;metaWeblog.getPost&quot;<\/span>, args[<span class=\'constant constant_numeric constant_numeric_ruby\'>0<\/span>], <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@login<\/span>, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@passwd<\/span>)\n");
document.write("    <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@post_id<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'postid\'<\/span>]\n");
document.write("          <span class=\'keyword keyword_control keyword_control_pseudo-method keyword_control_pseudo-method_ruby\'>return<\/span> {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span><span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_id\'<\/span> =&gt; resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'postid\'<\/span>],\n");
document.write("            <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_title\'<\/span> =&gt; resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'title\'<\/span>],\n");
document.write("            <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_date\'<\/span> =&gt; same_dt_fmt(resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'dateCreated\'<\/span>].to_time),\n");
document.write("            <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_link\'<\/span> =&gt; resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'link\'<\/span>],\n");
document.write("            <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_permalink\'<\/span> =&gt; resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'permalink\'<\/span>],\n");
document.write("            <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_author\'<\/span> =&gt; resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'userid\'<\/span>],\n");
document.write("            <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_allow_comments\'<\/span> =&gt; resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'mt_allow_comments\'<\/span>],\n");
document.write("            <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_comment_status\'<\/span> =&gt; resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'comment_status\'<\/span>],\n");
document.write("            <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_allow_pings\'<\/span> =&gt; resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'mt_allow_pings\'<\/span>],\n");
document.write("            <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_ping_status\'<\/span> =&gt; resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'mt_ping_status\'<\/span>],\n");
document.write("            <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_categories\'<\/span> =&gt; resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'categories\'<\/span>].join(<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\' \'<\/span>),\n");
document.write("            <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_body\'<\/span> =&gt; resp[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'description\'<\/span>]\n");
document.write("          }\n");
document.write("\n");
document.write("  <span class=\'keyword keyword_control keyword_control_ruby\'>when<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;rp&quot;<\/span>\n");
document.write("          resp <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@blog<\/span>.call(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;mt.getRecentPostTitles&quot;<\/span>, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@blog_id<\/span>, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@login<\/span>, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@passwd<\/span>, args[<span class=\'constant constant_numeric constant_numeric_ruby\'>0<\/span>])\n");
document.write("    arr_hash <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> []\n");
document.write("          resp.each {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span>|<span class=\'variable variable_other variable_other_block variable_other_block_ruby\'>r<\/span>| arr_hash <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_augmented keyword_operator_assignment_augmented_ruby\'>&lt;&lt;<\/span> {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span><span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_id\'<\/span> =&gt; r[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'postid\'<\/span>],\n");
document.write("                                        <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_title\'<\/span> =&gt; r[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'title\'<\/span>],\n");
document.write("                                        <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_date\'<\/span> =&gt; r[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'dateCreated\'<\/span>].to_time }\n");
document.write("    }\n");
document.write("    <span class=\'keyword keyword_control keyword_control_pseudo-method keyword_control_pseudo-method_ruby\'>return<\/span> arr_hash\n");
document.write("\n");
document.write("  <span class=\'keyword keyword_control keyword_control_ruby\'>when<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;cl&quot;<\/span>\n");
document.write("          resp <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@blog<\/span>.call(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;mt.getCategoryList&quot;<\/span>, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@blog_id<\/span>, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@login<\/span>, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@passwd<\/span>)\n");
document.write("    arr_hash <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> []\n");
document.write("          resp.each {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span>|<span class=\'variable variable_other variable_other_block variable_other_block_ruby\'>r<\/span>| arr_hash <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_augmented keyword_operator_assignment_augmented_ruby\'>&lt;&lt;<\/span> r[<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'categoryName\'<\/span>] }\n");
document.write("    <span class=\'keyword keyword_control keyword_control_pseudo-method keyword_control_pseudo-method_ruby\'>return<\/span> arr_hash\n");
document.write("\n");
document.write("  <span class=\'keyword keyword_control keyword_control_ruby\'>when<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;draft&quot;<\/span>\n");
document.write("    args[<span class=\'constant constant_numeric constant_numeric_ruby\'>2<\/span>] <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>?<\/span> call <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;metaWeblog.newPost&quot;<\/span> : call <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;metaWeblog.editPost&quot;<\/span> \n");
document.write("    args[<span class=\'constant constant_numeric constant_numeric_ruby\'>2<\/span>] <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>?<\/span> which_id <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@blog_id<\/span> :  which_id <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> args[<span class=\'constant constant_numeric constant_numeric_ruby\'>0<\/span>][<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_id\'<\/span>]\n");
document.write("          resp <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@blog<\/span>.call(call, which_id, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@login<\/span>, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@passwd<\/span>, args[<span class=\'constant constant_numeric constant_numeric_ruby\'>0<\/span>], args[<span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>])  <span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'># hash content, boolean state (&quot;publish&quot;|&quot;draft&quot;)<\/span>\n");
document.write("          <span class=\'keyword keyword_control keyword_control_pseudo-method keyword_control_pseudo-method_ruby\'>return<\/span> {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span><span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_id\'<\/span> =&gt; resp }\n");
document.write("\n");
document.write("        <span class=\'keyword keyword_control keyword_control_ruby\'>when<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;publish&quot;<\/span>\n");
document.write("    args[<span class=\'constant constant_numeric constant_numeric_ruby\'>2<\/span>] <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>?<\/span> call <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;metaWeblog.newPost&quot;<\/span> : call <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;metaWeblog.editPost&quot;<\/span> \n");
document.write("    args[<span class=\'constant constant_numeric constant_numeric_ruby\'>2<\/span>] <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>?<\/span> which_id <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@blog_id<\/span> :  which_id <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> args[<span class=\'constant constant_numeric constant_numeric_ruby\'>0<\/span>][<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_id\'<\/span>]\n");
document.write("          resp <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@blog<\/span>.call(call, which_id, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@login<\/span>, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@passwd<\/span>, args[<span class=\'constant constant_numeric constant_numeric_ruby\'>0<\/span>], args[<span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>])  <span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'># hash content, boolean state (&quot;publish&quot;|&quot;draft&quot;)<\/span>\n");
document.write("          <span class=\'keyword keyword_control keyword_control_pseudo-method keyword_control_pseudo-method_ruby\'>return<\/span> {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span><span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'post_id\'<\/span> =&gt; resp }\n");
document.write("\n");
document.write("         <span class=\'keyword keyword_control keyword_control_ruby\'>when<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;del&quot;<\/span>\n");
document.write("          resp <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@blog<\/span>.call(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;metaWeblog.deletePost&quot;<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;1234567890ABCDE&quot;<\/span>, args[<span class=\'constant constant_numeric constant_numeric_ruby\'>0<\/span>], <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@login<\/span>, <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@passwd<\/span>)\n");
document.write("          <span class=\'keyword keyword_control keyword_control_pseudo-method keyword_control_pseudo-method_ruby\'>return<\/span> resp\n");
document.write("\n");
document.write("       <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>rescue<\/span> <span class=\'support support_class support_class_ruby\'>XMLRPC<\/span>::<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>FaultException<\/span> =&gt; e\n");
document.write("        xmlrpc_flt_xcptn(e)\n");
document.write("      <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("    <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #######<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # same datetime format for dates<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #<\/span>\n");
document.write("    <span class=\'meta meta_function meta_function_method meta_function_method_with-arguments meta_function_method_with-arguments_ruby\'><span class=\'keyword keyword_control keyword_control_def keyword_control_def_ruby\'>def<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>same_dt_fmt<\/span>(<span class=\'variable variable_parameter variable_parameter_function variable_parameter_function_ruby\'>dt<\/span>)<\/span>\n");
document.write("      dt.strftime(<span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'%m/%d/%Y %H:%M:%S %Z\'<\/span>)\n");
document.write("    <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #######<\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    # exception handling error display message for communication problems <\/span>\n");
document.write("<span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'>    #<\/span>\n");
document.write("    <span class=\'meta meta_function meta_function_method meta_function_method_with-arguments meta_function_method_with-arguments_ruby\'><span class=\'keyword keyword_control keyword_control_def keyword_control_def_ruby\'>def<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>xmlrpc_flt_xcptn<\/span>(<span class=\'variable variable_parameter variable_parameter_function variable_parameter_function_ruby\'>excpt<\/span>)<\/span>\n");
document.write("      msg <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Error code: <span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{excpt.faultCode}<\/span> :: Error msg.:<span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{excpt.faultString}<\/span>&quot;<\/span>\n");
document.write("      <span class=\'support support_class support_class_ruby\'>VIM<\/span>::command(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;echo <span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\&quot;<\/span><span class=\'source source_ruby source_ruby_embedded source_ruby_embedded_source\'>#{msg}<\/span><span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\&quot;<\/span>&quot;<\/span>)\n");
document.write("    <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("  <span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span> <span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_ruby\'># class Wp_vim<\/span>\n");
document.write("  <span class=\'support support_class support_class_ruby\'>Wp_vim<\/span>.<span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>new<\/span>\n");
document.write("<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>EOF<\/span>\n");
document.write("  <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>catch<\/span> <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>del<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Usage for deleting a post:&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  :Blog del id&quot;<\/span>\n");
document.write("  <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>catch<\/span> <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>draft<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Usage for saving a draft of a post:&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  :Blog draft&quot;<\/span>\n");
document.write("  <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>catch<\/span> <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>publish<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Usage for Publishing a post:&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  :Blog publish&quot;<\/span>\n");
document.write("  <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>catch<\/span> <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>gc<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Usage for getting the list of Categories &lt;new window&gt;:&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  :Blog cl&quot;<\/span>\n");
document.write("  <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>catch<\/span> <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>gp<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Usage for Get Post [id]:&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  :Blog gp id&quot;<\/span>\n");
document.write("  <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>catch<\/span> <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>np<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Usage for New Post:&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  :Blog np&quot;<\/span>\n");
document.write("  <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>catch<\/span> <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>rp<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Usage for Recent [x] Posts (defaults to last 10): &lt;new window&gt;&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  :Blog rp [x]&quot;<\/span>\n");
document.write("  <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>catch<\/span> <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span><span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Usage is :Blog option [arg]&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot; switches:&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  - rp [x]   =&gt; show recent [x] posts&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  - gp id    =&gt; get post with identification id&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  - np       =&gt; create a new post&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  - publish  =&gt; publish an edited/new post&quot;<\/span> \n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  - draft    =&gt; save edited/new post as draft&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  - gc       =&gt; get the list of categories&quot;<\/span>\n");
document.write("    <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:echo<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;  - del id   =&gt; delete post with identification id&quot;<\/span>\n");
document.write("  endtry\n");
document.write("endfunction \n");
document.write("<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot; }}}1<\/span>\n");
document.write("<\/pre><\/pre>\n");
document.write("		<\/td>\n");
document.write("		<\/tr>\n");
document.write("		<\/table>\n");
document.write("	\n");
document.write("	<\/div>\n");
document.write("\n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("  <div class=\"credit\">\n");
document.write("    <div class=\"buttons\">\n");
document.write("      <a href=\"http://pastie.org/pastes/637877.txt\">\n");
document.write("      <img src=\"http://pastie.org/images/view.png\" height=\"20\" width=\"67\" /><\/a>\n");
document.write("    <\/div>\n");
document.write("  \n");
document.write("    <a href=\"http://pastie.org/637877\">Pastie #637877<\/a> linked directly from <a href=\"http://pastie.org/\">Pastie<\/a>.\n");
document.write("  <\/div><\/div>");

