Skip to content
Browse files

embed default snippets

  • Loading branch information...
1 parent d4e2b02 commit 74f90ccd6d69a2a7929a9985cf6e6cc8b39606af @erinata committed May 3, 2012
View
9 Config/Version.h
@@ -29,17 +29,18 @@
//#define TESTING
-
-#define VERSION_TEXT "0.5.60"
-#define VERSION_NUM 0,5,60,0
-#define VERSION_LINEAR 560
+#define VERSION_TEXT "0.5.59.1"
+#define VERSION_NUM 0,5,59,1
+#define VERSION_LINEAR 559
#define VERSION_KEEP_CONFIG_START 549
#define VERSION_STAGE "(Alpha)"
#ifdef TESTING
#define VERSION_STAGE_ADD " Nightly"
#else
#define VERSION_STAGE_ADD ""
#endif
+#define SNIPPET_RESOURCE 301
+#define DEFAULTSNIPPETPATH "DefaultSnippetPackage\\fingertext_standard_library-0.2.0.ftd"
#define AUTHOR_NAME "erinata"
View
BIN Config/Version.rc
Binary file not shown.
View
BIN Config/resource.h
Binary file not shown.
View
2 Embeded/DefaultPackage.cpp
@@ -30,5 +30,5 @@
#include "DefaultPackage.h"
std::string getDefaultPackage() {
- return "time\nGLOBAL\n$[![(key)TIME:HH:mm:ss]!][>END<]!$[FingerTextData FingerTextData]@#\nshebang\nGLOBAL\n#!/usr/bin/env$[![]!][>END<]!$[FingerTextData FingerTextData]@#\nnpp\nGLOBAL\nNotepad++\n[>END<]!$[FingerTextData FingerTextData]@#\nmit\nGLOBAL\nMIT license\n\nCopyright (C) $[![(key)DATE:yyyy]!] by $[![{Your Name}]!]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n$[![]!]\n\n[>END<]!$[FingerTextData FingerTextData]@#\nlorem\nGLOBAL\nLorem ipsum dolor sit amet, libero turpis non cras ligula, id commodo, aenean est in volutpat amet sodales, porttitor bibendum facilisi suspendisse, aliquam ipsum ante morbi sed ipsum mollis. Sollicitudin viverra, vel varius eget sit mollis. Commodo enim aliquam suspendisse tortor cum diam, commodo facilisis, rutrum et duis nisl porttitor, vel eleifend odio ultricies ut, orci in adipiscing felis velit nibh. Consectetuer porttitor feugiat vestibulum sit feugiat, voluptates dui eros libero. Etiam vestibulum at lectus.\nDonec vivamus. Vel donec et scelerisque vestibulum. Condimentum aliquam, mollit magna velit nec, tempor cursus vitae sit aliquet neque purus. Ultrices lacus proin conubia dictum tempus, tempor pede vitae faucibus, sem auctor, molestie diam dictum aliquam. Dolor leo, ridiculus est ut cubilia nec, fermentum arcu praesent, pede etiam. Tempor vestibulum turpis id ligula mi mattis. Eget arcu vitae mauris amet odio. Diam nibh diam, quam elit, libero nostra ut. Pellentesque vehicula. Eget sed, dapibus magna nulla nonummy commodo accumsan morbi, praesent volutpat vel id maecenas, morbi habitant sem in adipiscing mi erat, malesuada pretium tortor rutrum eu eros vel. Donec molestie, faucibus a amet commodo scelerisque libero massa. Sapien quam in eu vel nulla.\nIaculis et dui ullamcorper, non egestas condimentum dui phasellus. Sit non mattis a, leo in imperdiet erat nec pulvinar. Ornare massa justo cursus, convallis mauris interdum felis. Felis posuere metus, ornare pede montes, morbi urna sed temporibus non, nibh inceptos enim turpis natoque ac praesent. Litora vivamus veritatis vel nonummy, ut qui est pellentesque at alias, sed condimentum dapibus.\nRhoncus lacinia. Imperdiet nulla sem fringilla, purus enim amet, nascetur faucibus, adipiscing neque ut bibendum, at felis nec in. Mauris ultricies, et pede id potenti in nec, mi elit rhoncus ligula, mollis lacus congue scelerisque magna. Ultrices risus elit lectus nunc blandit quis, magna enim ipsum, nostra leo vestibulum quis nibh arcu sed. Amet a sagittis fringilla, massa vitae rhoncus, a magna curabitur in.[>END<]!$[FingerTextData FingerTextData]@#\nfilename\nGLOBAL\n$[![(key)FILENAME]!]$[![(key)EXTNAME]!][>END<]!$[FingerTextData FingerTextData]@#\nexecute\nGLOBAL\n$[![(run)$[![{type a command (e.g. dir) and hit TAB}]!]]!][>END<]!$[FingerTextData FingerTextData]@#\nevaluate\nGLOBAL\n$[![(eva)$[![{type a math expression (e.g. 1+1) and hit TAB}]!]]!][>END<]!$[FingerTextData FingerTextData]@#\ndirectory\nGLOBAL\n$[![(key)DIRECTORY]!][>END<] !$[FingerTextData FingerTextData]@#\ndate\nGLOBAL\n$[![(key)DATE:yyyy/MM/dd]!][>END<]!$[FingerTextData FingerTextData]@#\n";
+ return "hello"; //"template\nName:makefile\nCXXFLAGS = -O2 -g -Wall -fmessage-length=0\n\nOBJS = $[![file name]!].o\n\nLIBS =\n\nTARGET = $[![file name]!].exe\n\n$(TARGET): $(OBJS)\n $(CXX) -o $(TARGET) $(OBJS) $(LIBS)\n\nall: $(TARGET)\n\nclean:\n rm -f $(OBJS) $(TARGET)\n[>END<]!$[FingerTextData FingerTextData]@#\nsimple\nName:makefile\nall:\n g++ -c -Wall $[![{FileName}]!].cpp\n g++ $[![{FileName}]!].o -o $[![{FileName}]!][>END<]!$[FingerTextData FingerTextData]@#\nwhile\nLang:MATLAB\nwhile $[![{condition}]!]\n $[![]!]\nend[>END<]!$[FingerTextData FingerTextData]@#\nwarning\nLang:MATLAB\nwarning('$[![{Description}]!]');[>END<]!$[FingerTextData FingerTextData]@#\ntitle\nLang:MATLAB\ntitle('$[![{title 1}]!]');[>END<]!$[FingerTextData FingerTextData]@#\ntemplate\nLang:MATLAB\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% \n% Ext: $[![$[1[(key)FILENAME]1]]!]\n% \n% Description: $[![To be specified ...... ]!]\n% \n% Inputs: $[![To be specified ...... ]!]\n% \n% Outputs: $[![To be specified ...... ]!]\n% \n% Date Created: $[1[(key)DATE:yyyyMMdd]1]\n% \n% Author: $[![{your name}]!]\n% \n% License: $[![No License]!]\n%\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n\ntry\n % Main code here\n $[![]!]\ncatch\n % Exception handling here\nend[>END<]!$[FingerTextData FingerTextData]@#\nif\nLang:MATLAB\nif $[![{condition}]!],\n $[![]!]\nend[>END<]!$[FingerTextData FingerTextData]@#\nfunction\nLang:MATLAB\nfunction [ $[![{output}]!] ] = $[![{Function Name}]!]( $[![{input}]!] )\n $[![]!]\nend[>END<]!$[FingerTextData FingerTextData]@#\nfor\nLang:MATLAB\nfor $[![i]!]=$[![1]!]:$[![n]!]\n $[![]!]\nend[>END<]!$[FingerTextData FingerTextData]@#\ntemplate\nLang:CPP\n //============================================================================\n// Name : $[![$[1[(key)FILENAME]1]]!]\n// Author : $[![{your name}]!]\n// Version : $[![{Version}]!]\n// Date : $[1[(key)DATE:yyyyMMdd]1] \n// License : $[![No License]!]\n// Description : $[![To be added........]!]\n//============================================================================\n\n#include <stdio.h>\n\nint main() {\n $[![{Body}]!]\n return 0;\n}\n[>END<]!$[FingerTextData FingerTextData]@#\nswitch\nLang:CPP\nswitch ($[![{Key}]!]) \n{\n case $[![{Value}]!]:\n $[![{Body}]!]\n break;\n default:\n $[![{default}]!]\n break;\n}[>END<]!$[FingerTextData FingerTextData]@#\nmain\nLang:CPP\nint main(int argc, char* argv[]) \n{\n $[![[Body]]!]\n}[>END<]!$[FingerTextData FingerTextData]@#\nif\nLang:CPP\nif ($[![{condition}]!])\n{\n $[![{Body 1}]!]\n} else\n{\n $[![{Body 2}]!]\n}[>END<]!$[FingerTextData FingerTextData]@#\nhelloworld\nLang:CPP\n//============================================================================\n // Name : HelloWorld.cpp\n // Author : \n // Version : \n // Date : \n // License : \n // Description : Hello World in C++\n //============================================================================\n \n#include <iostream>\nusing namespace std;\n\nint main() {\n cout << \"!!!Hello World!!!\" << endl; \n cin.get();\n return 0;\n}\n[>END<]!$[FingerTextData FingerTextData]@#\nfor\nLang:CPP\nint $[![i]!] = 0;\nfor ( $[![i]!]= 0; $[![{Condition}]!]; ++$[![i]!]) {\n $[![{Body}]!]\n}[>END<]!$[FingerTextData FingerTextData]@#\ndo\nLang:CPP\ndo\n{ \n $[![{Body}]!] \n} while ($[![{Condition}]!]);[>END<]!$[FingerTextData FingerTextData]@#\ncout\nLang:CPP\ncout << \"$[![{Text}]!]\" << endl;[>END<]!$[FingerTextData FingerTextData]@#\ntemplate\nLang:C\n //============================================================================\n// Name : $[![$[1[(key)FILENAME]1]]!]\n// Author : $[![{your name}]!]\n// Version : $[![{Version}]!]\n// Date : $[1[(key)DATE:yyyyMMdd]1] \n// License : $[![No License]!]\n// Description : $[![To be added........]!]\n//============================================================================\n\n#include <stdio.h>\n\nint main() {\n $[![{Body}]!]\n return 0;\n}\n[>END<]!$[FingerTextData FingerTextData]@#\nswitch\nLang:C\nswitch ($[![{Key}]!]) \n{\n case $[![{Value}]!]:\n $[![{Body}]!]\n break;\n default:\n $[![{default}]!]\n break;\n}[>END<]!$[FingerTextData FingerTextData]@#\nmain\nLang:C\nint main(int argc, char* argv[]) \n{\n $[![[Body]]!]\n}[>END<]!$[FingerTextData FingerTextData]@#\nif\nLang:C\nif ($[![{condition}]!])\n{\n $[![{Body 1}]!]\n} else\n{\n $[![{Body 2}]!]\n}[>END<]!$[FingerTextData FingerTextData]@#\nhelloworld\nLang:C\n//============================================================================\n // Name : HelloWorld.cpp\n // Author : \n // Version : \n // Date : \n // License : \n // Description : Hello World in C\n //============================================================================\n \n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void) {\n puts(\"!!!Hello World!!!\");\n return EXIT_SUCCESS;\n}\n[>END<]!$[FingerTextData FingerTextData]@#\nfor\nLang:C\nint $[![i]!] = 0;\nfor ( $[![i]!]= 0; $[![{Condition}]!]; ++$[![i]!]) {\n $[![{Body}]!]\n}[>END<]!$[FingerTextData FingerTextData]@#\ndo\nLang:C\ndo\n{ \n $[![{Body}]!] \n} while ($[![{Condition}]!]);[>END<]!$[FingerTextData FingerTextData]@#\ntime\nGLOBAL\n$[![(key)TIME:HH:mm:ss]!][>END<]!$[FingerTextData FingerTextData]@#\nshebang\nGLOBAL\n#!/usr/bin/env[>END<]!$[FingerTextData FingerTextData]@#\nnpp\nGLOBAL\nNotepad++\n[>END<]!$[FingerTextData FingerTextData]@#\nmit\nGLOBAL\nMIT license\n\nCopyright (C) $[![(key)DATE:yyyy]!] by $[![{Your Name}]!]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n$[![]!]\n\n[>END<]!$[FingerTextData FingerTextData]@#\nlorem\nGLOBAL\nLorem ipsum dolor sit amet, libero turpis non cras ligula, id commodo, aenean est in volutpat amet sodales, porttitor bibendum facilisi suspendisse, aliquam ipsum ante morbi sed ipsum mollis. Sollicitudin viverra, vel varius eget sit mollis. Commodo enim aliquam suspendisse tortor cum diam, commodo facilisis, rutrum et duis nisl porttitor, vel eleifend odio ultricies ut, orci in adipiscing felis velit nibh. Consectetuer porttitor feugiat vestibulum sit feugiat, voluptates dui eros libero. Etiam vestibulum at lectus.\nDonec vivamus. Vel donec et scelerisque vestibulum. Condimentum aliquam, mollit magna velit nec, tempor cursus vitae sit aliquet neque purus. Ultrices lacus proin conubia dictum tempus, tempor pede vitae faucibus, sem auctor, molestie diam dictum aliquam. Dolor leo, ridiculus est ut cubilia nec, fermentum arcu praesent, pede etiam. Tempor vestibulum turpis id ligula mi mattis. Eget arcu vitae mauris amet odio. Diam nibh diam, quam elit, libero nostra ut. Pellentesque vehicula. Eget sed, dapibus magna nulla nonummy commodo accumsan morbi, praesent volutpat vel id maecenas, morbi habitant sem in adipiscing mi erat, malesuada pretium tortor rutrum eu eros vel. Donec molestie, faucibus a amet commodo scelerisque libero massa. Sapien quam in eu vel nulla.\nIaculis et dui ullamcorper, non egestas condimentum dui phasellus. Sit non mattis a, leo in imperdiet erat nec pulvinar. Ornare massa justo cursus, convallis mauris interdum felis. Felis posuere metus, ornare pede montes, morbi urna sed temporibus non, nibh inceptos enim turpis natoque ac praesent. Litora vivamus veritatis vel nonummy, ut qui est pellentesque at alias, sed condimentum dapibus.\nRhoncus lacinia. Imperdiet nulla sem fringilla, purus enim amet, nascetur faucibus, adipiscing neque ut bibendum, at felis nec in. Mauris ultricies, et pede id potenti in nec, mi elit rhoncus ligula, mollis lacus congue scelerisque magna. Ultrices risus elit lectus nunc blandit quis, magna enim ipsum, nostra leo vestibulum quis nibh arcu sed. Amet a sagittis fringilla, massa vitae rhoncus, a magna curabitur in.[>END<]!$[FingerTextData FingerTextData]@#\nif\nGLOBAL\nif ($[3[]3]) {\n $[![]!]\n} $[2[(lis)|else $[![(cha)if]!]| else {\n $[![]!]\n}]2][>END<]!$[FingerTextData FingerTextData]@#\nfilename\nGLOBAL\n$[![(key)FILENAME]!]$[![(key)EXTNAME]!][>END<]!$[FingerTextData FingerTextData]@#\nexecute\nGLOBAL\n$[![(run)$[![{type a command (e.g. dir) and hit TAB}]!]]!][>END<]!$[FingerTextData FingerTextData]@#\nevaluate\nGLOBAL\n$[![(eva)$[![{type a math expression (e.g. 1+1) and hit TAB}]!]]!][>END<]!$[FingerTextData FingerTextData]@#\ndirectory\nGLOBAL\n$[![(key)DIRECTORY]!][>END<] !$[FingerTextData FingerTextData]@#\ndate\nGLOBAL\n$[![(key)DATE:yyyy/MM/dd]!][>END<]!$[FingerTextData FingerTextData]@#\ntagshort\nExt:xml\n<$[![tagname]!]/>[>END<]!$[FingerTextData FingerTextData]@#\ntag\nExt:xml\n<$[![tagname]!]>$[0[]0]</$[![tagname]!]>[>END<]!$[FingerTextData FingerTextData]@#\ndeclaration\nExt:xml\n<?xml version=\"1.0\"?>$[![]!][>END<]!$[FingerTextData FingerTextData]@#\ncdata\nExt:xml\n<![CDATA[\n $[![]!]\n]]>[>END<]!$[FingerTextData FingerTextData]@#\ntimes\nExt:rb\ntimes do |$[![i]!]|\n $[1[(key)SELECTION]1]$[![]!]\nend[>END<]!$[FingerTextData FingerTextData]@#\nshebang\nExt:rb\n#!/usr/bin/env ruby$[![]!][>END<]!$[FingerTextData FingerTextData]@#\nrescuelog\nExt:rb\nbegin\n $[![]!]\nrescue Exception => e\n File.open(\"exception.log\") do |f|\n f.puts e.inspect\n f.puts e.backtrace\n end\nend[>END<]!$[FingerTextData FingerTextData]@#\nrescue\nExt:rb\nbegin\n $[![]!]\nrescue Exception => e\n p e.inspect\n p e.backtrace\nend[>END<]!$[FingerTextData FingerTextData]@#\nraise\nExt:rb\nraise \"$[![Error!]!]\"[>END<]!$[FingerTextData FingerTextData]@#\nlambda\nExt:rb\nlambda do |$[![e]!]|\n $[1[(key)SELECTION]1]$[![]!]\nend[>END<]!$[FingerTextData FingerTextData]@#\nif\nExt:rb\nif $[![{condition}]!]\n $[![{body1}]!]\nelse\n $[![{body2}]!]\nend[>END<]!$[FingerTextData FingerTextData]@#\nflash\nExt:rb\nflash[:$[![notice]!]] = \"$[![(content)]!]\"[>END<]!$[FingerTextData FingerTextData]@#\nexceptionlog\nExt:rb\nbegin\n $[![]!]\nrescue Exception => e\n File.open(\"exception.log\") do |f|\n f.puts e.inspect\n f.puts e.backtrace\n end\nend[>END<]!$[FingerTextData FingerTextData]@#\neach\nExt:rb\neach do |$[![i]!]|\n $[1[(key)SELECTION]1]$[![]!]\nend[>END<]!$[FingerTextData FingerTextData]@#\ndo\nExt:rb\ndo |$[![i]!]|\n $[1[(key)SELECTION]1]$[![]!]\nend[>END<]!$[FingerTextData FingerTextData]@#\ndir\nExt:rb\nFile.dirname(__FILE__)[>END<]!$[FingerTextData FingerTextData]@#\ndef\nExt:rb\ndef $[![{method name}]!]$[![]!]\n $[1[(key)SELECTION]1]$[![]!]\nend[>END<]!$[FingerTextData FingerTextData]@#\ncase\nExt:rb\ncase $[![{object}]!]\nwhen $[![{condition1}]!]\n $[![{body1}]!]\nwhen $[![{condition2}]!]\n $[![{body2}]!]\nelse\n $[![{default}]!]\nend[>END<]!$[FingerTextData FingerTextData]@#\nalias\nExt:rb\nalias_method :$[![{new name}]!], :$[![{old name}]!][>END<]!$[FingerTextData FingerTextData]@#\naa\nExt:rb\nattr_accessor :$[![{attr name}]!][>END<]!$[FingerTextData FingerTextData]@#\ntry\nExt:r\ntryCatch({\n $[![try]!]\n}, error = function(e){\n $[![catch]!]\n})\n[>END<]!$[FingerTextData FingerTextData]@#\nswitch\nExt:r\nswitch($[![key]!],\n $[![item_1]!] = $[![\"value_1\"]!],\n $[![item_2]!] = $[![\"value_2\"]!]\n)\n[>END<]!$[FingerTextData FingerTextData]@#\nsortdf\nExt:r\n$[![my_data_frame]!][with($[![my_data_frame]!],order($[![order_by]!]),]\n[>END<]!$[FingerTextData FingerTextData]@#\nroxygen\nExt:r\n#' Description \n#' @name \n#' @aliases \n#' @title \n#' @param \n#' @param \n#' @param \n#' @return \n#' @author \n#' @seealso \code{\link{}} \n#' @export\n#' @examples \n#' \dontrun{\n#' \n#' } [>END<]!$[FingerTextData FingerTextData]@#\nrm\nExt:r\nrm(list=ls(all=TRUE))\n$[![]!][>END<]!$[FingerTextData FingerTextData]@#\nlm\nExt:r\nsummary(lm($[![y~x]!]))[>END<]!$[FingerTextData FingerTextData]@#\nfun\nExt:r\n$[![function_name]!]<-function(){\n $[![expression]!]\n}\n[>END<] !$[FingerTextData FingerTextData]@#\nforeach\nExt:r\nforeach($[![iterator]!] ) %do% {\n $[![expression]!]\n}\n[>END<]!$[FingerTextData FingerTextData]@#\nfor\nExt:r\nfor ($[![i=]!]){\n $[![expression]!]\n}\n[>END<]!$[FingerTextData FingerTextData]@#\ncl\nExt:r\ncl<-makeCluster(detectCores(8))\n[>END<]!$[FingerTextData FingerTextData]@#\nS3generic\nExt:r\n$[![method_name]!] <-\nfunction(x,...){\n UseMethod(\"$[![method_name]!]\")\n}\n[>END<] !$[FingerTextData FingerTextData]@#\ntemplate\nExt:pl\n#!/usr/bin/env perl\n\nuse strict;\nuse warnings;\n\nmain(@ARGV)\n\nsub main\n{\n $[0[]0]\n}\n\n[>END<]!$[FingerTextData FingerTextData]@#\nsub\nExt:pl\nsub $[![some_sub]!]\n{\n $[![]!]\n}\n[>END<]!$[FingerTextData FingerTextData]@#\nshebang\nExt:pl\n#!/usr/bin/env perl$[![]!][>END<]!$[FingerTextData FingerTextData]@#\nprint\nExt:pl\nprint \"$[![Hello World!]!]\"[>END<]!$[FingerTextData FingerTextData]@#\nmessage\nExt:pl\nmessage(\"$[![Hello World!]!]\")[>END<]!$[FingerTextData FingerTextData]@#\ninclude\nExt:php\ninclude(\"$[![file.php]!]\");[>END<]!$[FingerTextData FingerTextData]@#\necho\nExt:php\necho \"$[![Hello World!]!]\";[>END<]!$[FingerTextData FingerTextData]@#\ncomment\nExt:php\n/* $[0[]0] */[>END<]!$[FingerTextData FingerTextData]@#\nprint\nExt:lua\nprint (\"$[![Hello World!]!]\")[>END<]!$[FingerTextData FingerTextData]@#\nif\nExt:lua\nif $[![{condition}]!] then\n $[![]!]\nelse\n $[![]!]\nend\n[>END<]!$[FingerTextData FingerTextData]@#\nfunction\nExt:lua\nfunction $[![some_function]!]\n $[![]!]\nend\n[>END<]!$[FingerTextData FingerTextData]@#\nfor\nExt:lua\nfor $[![i]!] = $[![{from}]!], $[![{to}]!], $[![{step}]!] do\n $[![]!]\nend\n[>END<]!$[FingerTextData FingerTextData]@#\nwrite\nExt:js\ndocument.write(\"$[![<p>Hello World</p>]!]\");[>END<]!$[FingerTextData FingerTextData]@#\nvar\nExt:js\nvar $[![x]!] = $[![]!][>END<]!$[FingerTextData FingerTextData]@#\nifelse\nExt:js\nif ($[![{condition}]!])\n{\n $[![]!]\n} else\n{\n $[![]!]\n}\n[>END<]!$[FingerTextData FingerTextData]@#\nif\nExt:js\nif ($[![{condition}]!])\n{\n $[![]!]\n}\n[>END<]!$[FingerTextData FingerTextData]@#\ngetbyid\nExt:js\ndocument.getElementById(\"$[![some_id]!]\")$[![]!][>END<]!$[FingerTextData FingerTextData]@#\nfunction\nExt:js\nfunction $[![function_name]!]()\n{\n $[![]!];\n}\n[>END<]!$[FingerTextData FingerTextData]@#\nfor\nExt:js\nfor ($[![i]!]=0;$[![i]!]<=$[![max_value]!];$[![i]!]++)\n{\n $[![]!]\n}\n[>END<]!$[FingerTextData FingerTextData]@#\ncomment\nExt:js\n/* $[0[]0] */[>END<]!$[FingerTextData FingerTextData]@#\narray\nExt:js\nvar $[![array_name]!] = new Array($[![\"item 1\"]!],$[![\"item 2\"]!],$[![\"item 3\"]!]);[>END<]!$[FingerTextData FingerTextData]@#\nalert\nExt:js\nalert(\"$[![Hello World!]!]\");[>END<]!$[FingerTextData FingerTextData]@#\nul\nExt:html\n<ul>\n <li>$[![item 1]!]</li>\n <li>$[![item 2]!]</li>\n <li>$[![item 3]!]$[0[]0]</li>\n</ul>[>END<]!$[FingerTextData FingerTextData]@#\nu\nExt:html\n<u>$[0[]0]</u>[>END<]!$[FingerTextData FingerTextData]@#\ntt\nExt:html\n<tt>$[0[]0]</tt>[>END<]!$[FingerTextData FingerTextData]@#\ntr\nExt:html\n<tr>$[0[]0]</tr>[>END<]!$[FingerTextData FingerTextData]@#\ntitle\nExt:html\ntitle=\"$[0[]0]\"[>END<]!$[FingerTextData FingerTextData]@#\nth\nExt:html\n<th>$[0[]0]</th>[>END<]!$[FingerTextData FingerTextData]@#\ntf\nExt:html\n<input type=\"text\" name=\"$[![{some name}]!]\" value=\"$[![{some value}]!]\" />[>END<]!$[FingerTextData FingerTextData]@#\ntemplate\nExt:html\n<!DOCTYPE html>\n<html>\n <head>\n <title>some title</title>\n </head>\n <body>\n <h1>Hello World!</h1>\n <p>This is an HTML document template.\n </body>\n</html>[>END<]!$[FingerTextData FingerTextData]@#\ntd\nExt:html\n<td>$[0[]0]</td>[>END<]!$[FingerTextData FingerTextData]@#\ntagshort\nExt:html\n<$[![tagname]!]/>[>END<]!$[FingerTextData FingerTextData]@#\ntag\nExt:html\n<$[![tagname]!]>$[0[]0]</$[![tagname]!]>[>END<]!$[FingerTextData FingerTextData]@#\ntable\nExt:html\n<table$[![ border=\"1\"]!]>\n <tr>\n <th>$[![Header 1]!]</th>\n <th>$[![Header 2]!]</th>\n </tr>\n <tr>\n <td>$[![row 1 col 1]!]</td>\n <td>$[![row 1 col 2]!]</td>\n </tr>\n <tr>\n <td>$[![row 2 col 1]!]</td>\n <td>$[![row 2 col 2]!]</td>\n </tr>\n</table>[>END<]!$[FingerTextData FingerTextData]@#\nsup\nExt:html\n<sup>$[0[]0]</sup>[>END<]!$[FingerTextData FingerTextData]@#\nsubmit\nExt:html\n<input type=\"submit\" value=\"$[![Submit]!]\" />[>END<]!$[FingerTextData FingerTextData]@#\nsub\nExt:html\n<sub>$[0[]0]</sub>[>END<]!$[FingerTextData FingerTextData]@#\nstyle\nExt:html\n<style type=\"text/css\">\n $[0[]0]\n</style>[>END<]!$[FingerTextData FingerTextData]@#\nstrong\nExt:html\n<strong>$[0[]0]</strong>[>END<]!$[FingerTextData FingerTextData]@#\nspan\nExt:html\n<span id=\"$[![some_id]!]\" class=\"$[![some_class]!]>$[0[]0]</span>[>END<]!$[FingerTextData FingerTextData]@#\nspace\nExt:html\n&nbsp;[>END<]!$[FingerTextData FingerTextData]@#\nsmall\nExt:html\n<small>$[0[]0]</small>[>END<]!$[FingerTextData FingerTextData]@#\nselect\nExt:html\n<select>\n <option>$[![option 1]!]</option>\n <option>$[![option 2]!]</option>\n <option>$[![option 3]!]$[0[]0]</option>\n</select>[>END<]!$[FingerTextData FingerTextData]@#\nscript\nExt:html\n<script type=\"text/javascript\">\n $[0[]0]\n</script>[>END<]!$[FingerTextData FingerTextData]@#\nsamp\nExt:html\n<samp>$[0[]0]</samp>[>END<]!$[FingerTextData FingerTextData]@#\nphp\nExt:html\n<?php $[0[]0]?>[>END<]!$[FingerTextData FingerTextData]@#\np\nExt:html\n<p>$[0[]0]</p>[>END<]!$[FingerTextData FingerTextData]@#\nol\nExt:html\n<ol>\n <li>$[![item 1]!]</li>\n <li>$[![item 2]!]</li>\n <li>$[![item 3]!]$[0[]0]</li>\n</ol>[>END<]!$[FingerTextData FingerTextData]@#\nnoscript\nExt:html\n<noscript>$[![Your browser does not support JavaScript!]!]$[0[]0]</noscript>[>END<]!$[FingerTextData FingerTextData]@#\nmeta\nExt:html\n<meta name=\"description\" content=\"$[![some description]!]\" />\n<meta name=\"keywords\" content=\"$[![HTML,CSS,XML,JavaScript]!]\" />\n<meta name=\"author\" content=\"$[![{your name}]!]\" />\n<meta http-equiv=\"content-type\" content=\"text/html;charset=UTF-8\" />\n[>END<]!$[FingerTextData FingerTextData]@#\nloadjs\nExt:html\n<script type=\"text/javascript\" src=\"$[![javascript]!].js\"></script>[>END<]!$[FingerTextData FingerTextData]@#\nloadcss\nExt:html\n<link rel=\"stylesheet\" type=\"text/css\" href=\"$[![{style_sheet}]!].css\">[>END<]!$[FingerTextData FingerTextData]@#\nkbd\nExt:html\n<kbd>$[0[]0]</kbd>[>END<]!$[FingerTextData FingerTextData]@#\nins\nExt:html\n<ins>$[0[]0]</ins>[>END<]!$[FingerTextData FingerTextData]@#\nimg\nExt:html\n<img src=\"$[![image]!].jpg\" alt=\"$[![IMAGE]!]\"$[![ align=\"left\" ]!]/>[>END<]!$[FingerTextData FingerTextData]@#\nid\nExt:html\nid=\"$[![some_id]!]\"[>END<]!$[FingerTextData FingerTextData]@#\ni\nExt:html\n<i>$[0[]0]</i>[>END<]!$[FingerTextData FingerTextData]@#\nhr\nExt:html\n<hr/>[>END<]!$[FingerTextData FingerTextData]@#\nhead\nExt:html\n<head>$[0[]0]</head>[>END<]!$[FingerTextData FingerTextData]@#\nh2\nExt:html\n<h2>$[0[]0]</h2>[>END<]!$[FingerTextData FingerTextData]@#\nh1\nExt:html\n<h1>$[0[]0]</h1>[>END<]!$[FingerTextData FingerTextData]@#\nform\nExt:html\n<form name=\"$[![some_name]!]\" action=\"$[![{form action link}]!]\" method=\"$[![post]!]\">\n $[0[]0]\n</form>[>END<]!$[FingerTextData FingerTextData]@#\nem\nExt:html\n<em>$[0[]0]</em>[>END<]!$[FingerTextData FingerTextData]@#\ndoctype\nExt:html\n<!DOCTYPE $[![(lis)html|html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"|html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\"|html PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\" \"http://www.w3.org/TR/html4/frameset.dtd\"]!]>\n$[0[]0][>END<]!$[FingerTextData FingerTextData]@#\ndiv\nExt:html\n<div id=\"$[![some_id]!]\" class=\"$[![some_class]!]>$[0[]0]</div>[>END<]!$[FingerTextData FingerTextData]@#\ndfn\nExt:html\n<dfn>$[0[]0]</dfn>[>END<]!$[FingerTextData FingerTextData]@#\ndel\nExt:html\n<del>$[0[]0]</del>[>END<]!$[FingerTextData FingerTextData]@#\ncomment\nExt:html\n<!-- $[0[]0] -->[>END<]!$[FingerTextData FingerTextData]@#\ncode\nExt:html\n<code>$[0[]0]</code>[>END<]!$[FingerTextData FingerTextData]@#\nclass\nExt:html\nclass=\"$[![some_class]!]\"[>END<]!$[FingerTextData FingerTextData]@#\ncite\nExt:html\n<cite>$[0[]0]</cite>[>END<]!$[FingerTextData FingerTextData]@#\nbutton\nExt:html\n<input type=\"button\" value=\"$[![Button 1]!]\" onClick='$[![some_function()]!]'/>$[0[]0][>END<]!$[FingerTextData FingerTextData]@#\nbr\nExt:html\n<br/>[>END<]!$[FingerTextData FingerTextData]@#\nbig\nExt:html\n<big>$[0[]0]</big>[>END<]!$[FingerTextData FingerTextData]@#\nb\nExt:html\n<b>$[0[]0]</b>[>END<]!$[FingerTextData FingerTextData]@#\na\nExt:html\n<a href=\"$[![{link}]!]\">$[![{text}]!]</a>[>END<]!$[FingerTextData FingerTextData]@#\nvisualstudio\nExt:gitignore\n/bin/*\n/Unicode Debug/*\n/Unicode Release/*\n/Ansi Debug/*\n/Ansi Release/*\n/Debug/*\n/Release/*\n*.aps\n*.pdb[>END<]!$[FingerTextData FingerTextData]@#\nheroku_rails\nExt:gitignore\nlog/*.log\ntmp/**/*\nconfig/database.yml\ndb/*.sqlite3\n.bundle\n[>END<]!$[FingerTextData FingerTextData]@#\npartial\nExt:erb\n<%= render :partial => '$[![(path)]!]' %>[>END<]!$[FingerTextData FingerTextData]@#\nfftf\nExt:erb\nf.text_field :$[![{attribute}]!][>END<]!$[FingerTextData FingerTextData]@#\nffta\nExt:erb\nf.text_area :$[![{attribute}]!][>END<]!$[FingerTextData FingerTextData]@#\nffrb\nExt:erb\nf.radio_button :$[![{attribute}]!], :$[![{tag_value}]!][>END<]!$[FingerTextData FingerTextData]@#\nffpf\nExt:erb\nf.password_field :$[![{attribute}]!][>END<]!$[FingerTextData FingerTextData]@#\nffl\nExt:erb\nf.label :$[![{attribute}]!], \"$[![{attribute}]!]\"[>END<]!$[FingerTextData FingerTextData]@#\nffcb\nExt:erb\nf.check_box :$[![{attribute}]!][>END<]!$[FingerTextData FingerTextData]@#\ncf\nExt:erb\n<% content_for :$[![{yield_label}]!] do -%>\n $[0[]0]\n<% end -%>[>END<]!$[FingerTextData FingerTextData]@#\ntemplate\nExt:do\n /* Ext: $[![$[1[(key)FILENAME]1]]!] */\n /* Description: $[![Enter description here......]!] */\n /* Inputs: $[![Input to be specified]!] */\n /* Outputs: $[![Output to be specified]!] */\n /* Date Created: $[1[(key)DATE:yyyyMMdd]1] */\n /* Date Updated: $[1[(key)DATE:yyyyMMdd]1] */\n /* Author: $[![$[![(cha)name]!]]!] */\n /* License: $[![no license]!] */\n\n/* initialize */\n#delimit cr\nclear all\ncap set mem 500m\ncap set more off\n\n/* open new logging */\ncap log close\ncap mkdir \"log\"\ncap log using \"log\$[![$[1[(key)FILENAME]1]]!].log\" ,replace\n\n$[![{Do something here......}]!]\n\n/* tidy up*/\ncap log close\n[>END<]!$[FingerTextData FingerTextData]@#\nsave\nExt:do\ncap save \"$[![{File Name}]!]\",replace[>END<]!$[FingerTextData FingerTextData]@#\nreshape\nExt:do\nreshape $[![{long|wide}]!] $[![{Variable List}]!] , i($[![{ID}]!]) j($[![{period}]!])[>END<]!$[FingerTextData FingerTextData]@#\nlag1\nExt:do\n($[![{variable}]!]==$[![{variable}]!][_n-1])[>END<]!$[FingerTextData FingerTextData]@#\ninsheet_name\nExt:do\ninsheet using \"$[![{csv File Name}]!]\" ,clear nonames\nforeach var of varlist _all {\n ren `var' `=`var'[1]'\n}\ndrop in 1\n$[![]!][>END<]!$[FingerTextData FingerTextData]@#\ninsheet\nExt:do\ninsheet using \"$[![{csv File Name}]!]\" ,clear$[![]!][>END<]!$[FingerTextData FingerTextData]@#\ninfile\nExt:do\ninfile using \"$[![{Dictionary Name}]!]\", clear$[![]!][>END<]!$[FingerTextData FingerTextData]@#\nforvalues\nExt:do\nforvalues i = $[![{start}]!]($[![{step}]!])$[![{end}]!]{\n $[![{Body}]!]\n}\n[>END<]!$[FingerTextData FingerTextData]@#\ncomment\nExt:do\n/* $[![]!] */[>END<]!$[FingerTextData FingerTextData]@#\nzindex\nExt:css\nz-index:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\nyellow\nExt:css\n#FFFF00[>END<]!$[FingerTextData FingerTextData]@#\nwordwrap\nExt:css\nword-wrap:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\nwordspacing\nExt:css\nword-spacing:$[![30]!]px;[>END<]!$[FingerTextData FingerTextData]@#\nwordbreak\nExt:css\nword-break:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\nwidth\nExt:css\nwidth:$[![100]!]px[>END<]!$[FingerTextData FingerTextData]@#\nwhitespace\nExt:css\nwhite-space:$[![(lis)inherit|normal|nowrap|pre|pre-line|pre-wrap]!];[>END<]!$[FingerTextData FingerTextData]@#\nwhite\nExt:css\n#FFFFFF[>END<]!$[FingerTextData FingerTextData]@#\nvisibility\nExt:css\nvisibility:$[![(lis)collapse|hidden|inherit|visible]!][>END<]!$[FingerTextData FingerTextData]@#\nverticalalign\nExt:css\nvertical-align:$[![(lis)baseline|bottom|inherit|middle|sub|super|text-bottom|text-top|top]!];[>END<]!$[FingerTextData FingerTextData]@#\ntop\nExt:css\ntop:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\ntextwrap\nExt:css\ntext-wrap:$[![(lis)none|normal|suppress|unrestricted]!];[>END<]!$[FingerTextData FingerTextData]@#\ntexttransform\nExt:css\ntext-transform:$[![(lis)capitalize|inherit|lowercase|none|uppercase]!];[>END<]!$[FingerTextData FingerTextData]@#\ntextshadow\nExt:css\ntext-shadow:$[![{h-shadow}]!] $[![{v-shadow}]!] $[![(cha)colorlist]!];[>END<]!$[FingerTextData FingerTextData]@#\ntextoverflow\nExt:css\ntext-overflow:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\ntextoutline\nExt:css\ntext-outline:$[![{thickness}]!] $[![(cha)colorlist]!];[>END<]!$[FingerTextData FingerTextData]@#\ntextjustify\nExt:css\ntext-align:justify;\ntext-justify:$[![(lis)auto|distribute|kashida|inter-cluster|inter-ideograph|inter-word|none]!];[>END<]!$[FingerTextData FingerTextData]@#\ntextindent\nExt:css\ntext-indent:$[![50]!]px;[>END<]!$[FingerTextData FingerTextData]@#\ntextdecoration\nExt:css\ntext-decoration:$[![(lis)blink|inherit|line-through|none|overline|underline]!];[>END<]!$[FingerTextData FingerTextData]@#\ntextalign\nExt:css\ntext-align:$[![(lis)center|inherit|justify|left|right]!];[>END<]!$[FingerTextData FingerTextData]@#\ntemplate\nExt:css\nbody\n{\n background-color:$[![#FFEE99]!]\n}\n\nh1\n{\n color:$[![#AA5500]!];\n text-align:center;\n}\n\np\n{\n font-family:\"Times New Roman\";\n font-size:20px;\n}[>END<]!$[FingerTextData FingerTextData]@#\ntablelayout\nExt:css\ntable-layout:$[![(lis)auto|fixed|inherit]!];[>END<]!$[FingerTextData FingerTextData]@#\nstylelist\nExt:css\n$[![(lis)dashed|dotted|double|groove|hidden|inherit|inset|none|outset|ridge|solid]!][>END<]!$[FingerTextData FingerTextData]@#\nsizelist\nExt:css\n$[![(lis)|inherit|large|larger|medium|small|smaller|xx-large|xx-small|x-large|x-small]!][>END<]!$[FingerTextData FingerTextData]@#\nright\nExt:css\nright:$[![5]!]px;[>END<]!$[FingerTextData FingerTextData]@#\nrgb\nExt:css\nrgb($[![255]!],$[![255]!],$[![255]!])[>END<]!$[FingerTextData FingerTextData]@#\nred\nExt:css\n#FF0000[>END<]!$[FingerTextData FingerTextData]@#\npunctuationtrim\nExt:css\npunctuation-trim:$[![(lis)adjacent|allow-end|end|none|start]!];[>END<]!$[FingerTextData FingerTextData]@#\nposition\nExt:css\nposition:$[![(lis)absolute|fixed|inherit|relative|static]!];[>END<]!$[FingerTextData FingerTextData]@#\npaddingtop\nExt:css\npadding-top:$[![10]!]px[>END<]!$[FingerTextData FingerTextData]@#\npaddingright\nExt:css\npadding-right:$[![10]!]px[>END<]!$[FingerTextData FingerTextData]@#\npaddingleft\nExt:css\npadding-left:$[![10]!]px[>END<]!$[FingerTextData FingerTextData]@#\npaddingbottom\nExt:css\npadding-bottom:$[![10]!]px[>END<]!$[FingerTextData FingerTextData]@#\npadding\nExt:css\npadding:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\noverflow\nExt:css\noverflow:$[![(lis)auto|inherit|hidden|scroll|visible]!];[>END<]!$[FingerTextData FingerTextData]@#\noutlinewidth\nExt:css\noutline-width:$[![15]!]px[>END<]!$[FingerTextData FingerTextData]@#\noutlinestyle\nExt:css\noutline-style:$[![(cha)stylelist]!][>END<]!$[FingerTextData FingerTextData]@#\noutlinecolor\nExt:css\noutline-color:$[![(cha)colorlist]!][>END<]!$[FingerTextData FingerTextData]@#\noutline\nExt:css\noutline:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\nminwidth\nExt:css\nmin-width:$[![100]!]px[>END<]!$[FingerTextData FingerTextData]@#\nminheight\nExt:css\nmin-height:$[![100]!]px[>END<]!$[FingerTextData FingerTextData]@#\nmaxwidth\nExt:css\nmax-width:$[![100]!]px[>END<]!$[FingerTextData FingerTextData]@#\nmaxheight\nExt:css\nmax-height:$[![100]!]px[>END<]!$[FingerTextData FingerTextData]@#\nmargintop\nExt:css\nmargin-top:$[![10]!]px[>END<]!$[FingerTextData FingerTextData]@#\nmarginright\nExt:css\nmargin-right:$[![10]!]px[>END<]!$[FingerTextData FingerTextData]@#\nmarginleft\nExt:css\nmargin-left:$[![10]!]px[>END<]!$[FingerTextData FingerTextData]@#\nmarginbottom\nExt:css\nmargin-bottom:$[![10]!]px[>END<]!$[FingerTextData FingerTextData]@#\nmargin\nExt:css\nmargin:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\nlineheight\nExt:css\nline-height:$[![100%]!];[>END<]!$[FingerTextData FingerTextData]@#\nlime\nExt:css\n#00FF00[>END<]!$[FingerTextData FingerTextData]@#\nletterspacing\nExt:css\nletter-spacing:$[![2]!]px;[>END<]!$[FingerTextData FingerTextData]@#\nleft\nExt:css\nleft:$[![5]!]px;[>END<]!$[FingerTextData FingerTextData]@#\nheight\nExt:css\nheight:$[![100]!]px[>END<]!$[FingerTextData FingerTextData]@#\nhangingpunctuation\nExt:css\nhanging-punctuation:$[![(lis)allow-end|first|force-end|last|none]!];[>END<]!$[FingerTextData FingerTextData]@#\ngrey\nExt:css\n#808080[>END<]!$[FingerTextData FingerTextData]@#\ngreen\nExt:css\n#008000[>END<]!$[FingerTextData FingerTextData]@#\nfontweight\nExt:css\nfont-weight:$[![(lis)blod|bloder|lighter|inherit|normal|100|200|300|400|500|600|700|800|900]!][>END<]!$[FingerTextData FingerTextData]@#\nfontvariant\nExt:css\nfont-variant:$[![(lis)inherit|normal|small-caps]!][>END<]!$[FingerTextData FingerTextData]@#\nfontstyle\nExt:css\nfont-style:$[![(lis)italic|normal|oblique]!][>END<]!$[FingerTextData FingerTextData]@#\nfontsize\nExt:css\nfont-size:$[![(cha)sizelist]!][>END<]!$[FingerTextData FingerTextData]@#\nfontfamily\nExt:css\nfont-family:$[![\"Times New Roman\"]!][>END<]!$[FingerTextData FingerTextData]@#\nfont\nExt:css\nfont:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\nfloat\nExt:css\nfloat:$[![(lis)inherit|left|right|none]!];[>END<]!$[FingerTextData FingerTextData]@#\nemptycells\nExt:css\nempty-cells:$[![(lis)hide|inherit|show]!];[>END<]!$[FingerTextData FingerTextData]@#\ndisplay\nExt:css\ndisplay:$[![(lis)block|inherit|inline|inline-block|inline-table|list-item|none|run-in|table|table-caption|table-cell|table-column|table-column-group|table-footer-group|table-header-group|table-row|table-row-group]!];[>END<]!$[FingerTextData FingerTextData]@#\ndirection\nExt:css\ndirection:$[![(lis)ltr|inherit|rtl]!];[>END<]!$[FingerTextData FingerTextData]@#\ncyan\nExt:css\n#00FFFF[>END<]!$[FingerTextData FingerTextData]@#\ncursor\nExt:css\ncursor:$[![(lis)auto|crosshair|default|e-resize|help|inherit|move|ne-resize|nw-resize|n-resize|pointer|progress|se-resize|sw-resize|s-resize|text|wait|w-resize]!][>END<]!$[FingerTextData FingerTextData]@#\ncomment\nExt:css\n/* $[0[]0] */[>END<]!$[FingerTextData FingerTextData]@#\ncolorlist\nExt:css\n$[![(lis)|black|blue|grey|green|orange|pink|purple|red|snow|white|yellow]!][>END<]!$[FingerTextData FingerTextData]@#\ncolor\nExt:css\n#$[![000000]!][>END<]!$[FingerTextData FingerTextData]@#\nclip\nExt:css\nclip:rect($[![0]!]px,$[![60]!]px,$[![200]!]px,$[![0]!]px);[>END<]!$[FingerTextData FingerTextData]@#\nclear\nExt:css\nclear:$[![(lis)both|inherit|left|none|right]!];[>END<]!$[FingerTextData FingerTextData]@#\ncaptionside\nExt:css\ncaption-side:$[![(lis)bottom|inherit|top]!];[>END<]!$[FingerTextData FingerTextData]@#\nbottom\nExt:css\nbottom:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\nborderwidth\nExt:css\nborder-width:$[![15]!]px[>END<]!$[FingerTextData FingerTextData]@#\nbordertopwidth\nExt:css\nborder-top-width:$[![15]!]px[>END<]!$[FingerTextData FingerTextData]@#\nbordertopstyle\nExt:css\nborder-top-style:$[![(cha)stylelist]!][>END<]!$[FingerTextData FingerTextData]@#\nbordertopcolor\nExt:css\nborder-top-color:$[![(cha)colorlist]!][>END<]!$[FingerTextData FingerTextData]@#\nbordertop\nExt:css\nborder-top:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\nborderstyle\nExt:css\nborder-style:$[![(cha)stylelist]!][>END<]!$[FingerTextData FingerTextData]@#\nborderspacing\nExt:css\nborder-spacing:$[![10]!]px $[![30]!]px;[>END<]!$[FingerTextData FingerTextData]@#\nborderrightwidth\nExt:css\nborder-right-width:$[![15]!]px[>END<]!$[FingerTextData FingerTextData]@#\nborderrightstyle\nExt:css\nborder-right-style:$[![(cha)stylelist]!][>END<]!$[FingerTextData FingerTextData]@#\nborderrightcolor\nExt:css\nborder-right-color:$[![(cha)colorlist]!][>END<]!$[FingerTextData FingerTextData]@#\nborderright\nExt:css\nborder-right:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\nborderleftwidth\nExt:css\nborder-left-width:$[![15]!]px[>END<]!$[FingerTextData FingerTextData]@#\nborderleftstyle\nExt:css\nborder-left-style:$[![(cha)stylelist]!][>END<]!$[FingerTextData FingerTextData]@#\nborderleftcolor\nExt:css\nborder-left-color:$[![(cha)colorlist]!][>END<]!$[FingerTextData FingerTextData]@#\nborderleft\nExt:css\nborder-left:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\nbordercolor\nExt:css\nborder-color:$[![(cha)colorlist]!][>END<]!$[FingerTextData FingerTextData]@#\nbordercollapse\nExt:css\nborder-collapse:$[![(lis)collapse|inherit|separate]!];[>END<]!$[FingerTextData FingerTextData]@#\nborderbottomwidth\nExt:css\nborder-bottom-width:$[![15]!]px[>END<]!$[FingerTextData FingerTextData]@#\nborderbottomstyle\nExt:css\nborder-bottom-style:$[![(cha)stylelist]!][>END<]!$[FingerTextData FingerTextData]@#\nborderbottomcolor\nExt:css\nborder-bottom-color:$[![(cha)colorlist]!][>END<]!$[FingerTextData FingerTextData]@#\nborderbottom\nExt:css\nborder-bottom:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\nborder\nExt:css\nborder:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\nblue\nExt:css\n#0000FF[>END<]!$[FingerTextData FingerTextData]@#\nblack\nExt:css\n#000000[>END<]!$[FingerTextData FingerTextData]@#\nbackgroundrepeat\nExt:css\nbackground-repeat:no-repeat;[>END<]!$[FingerTextData FingerTextData]@#\nbackgroundimage\nExt:css\nbackground-image:url('$[![image.gif]!]');[>END<]!$[FingerTextData FingerTextData]@#\nbackgroundcolor\nExt:css\nbackground-color:$[![(cha)colorlist]!][>END<]!$[FingerTextData FingerTextData]@#\nbackgroundattachment\nExt:css\nbackground-attachment:fixed;[>END<]!$[FingerTextData FingerTextData]@#\nbackground\nExt:css\nbackground:$[0[]0];[>END<]!$[FingerTextData FingerTextData]@#\n";
}
View
2 FingerText.vcxproj.filters
@@ -17,7 +17,7 @@
<UniqueIdentifier>{e8edcf11-cad7-40e9-b5bf-04bdec6f47f8}</UniqueIdentifier>
</Filter>
<Filter Include="DefaultPackage">
- <UniqueIdentifier>{933989c4-d530-4e49-86b6-3a9366456336}</UniqueIdentifier>
+ <UniqueIdentifier>{3a2c5b06-f015-49be-86dd-70454f557f90}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
View
63 PluginDefinition.cpp
@@ -285,9 +285,10 @@ void commandMenuInit()
g_toggleDisableIndex = setCommand(TEXT("Toggle On/Off FingerText"), toggleDisable);
setCommand();
g_selectionToSnippetIndex = setCommand(TEXT("Create Snippet from Selection"), doSelectionToSnippet);
+ g_downloadDefaultPackageIndex = setCommand(TEXT("Install Default Snippet Package"), installDefaultPackage);
g_importSnippetsIndex = setCommand(TEXT("Import Snippets from ftd file"), importSnippetsOnly);
//g_downloadDefaultPackageIndex = setCommand(TEXT("Import Default Snippet Package"), downloadDefaultPackage);
- g_downloadDefaultPackageIndex = setCommand(TEXT("Install Default Snippet Package"), installDefaultPackage);
+
g_exportSnippetsIndex = setCommand(TEXT("Export All Snippets"), exportSnippetsOnly);
g_deleteAllSnippetsIndex = setCommand(TEXT("Delete All Snippets"), exportAndClearSnippets);
@@ -3842,21 +3843,53 @@ void setListTarget()
void installDefaultPackage()
{
- HRSRC hRes = FindResource((HINSTANCE)g_hModule, MAKEINTRESOURCE(ID_CUSTOM1), L"ANYTHINGGOESHERE");
- HGLOBAL hMem = LoadResource((HINSTANCE)g_hModule, hRes);
- DWORD size = SizeofResource((HINSTANCE)g_hModule, hRes);
- char* resText = (char*)LockResource(hMem);
- char* text = (char*)malloc(size + 1);
- memcpy(text, resText, size);
- text[size] = 0;
- FreeResource(hMem);
-
-
- //std::ofstream myfile;
- //myfile.open (g_downloadPath);
+ updateSnippetCount();
+
+ int messageReturn = IDYES;
+
+ if (toDouble(g_snippetCount) != 0)
+ {
+ messageReturn = showMessageBox(TEXT("It seems that you already have some snippets in your FingerText database.\r\n\r\nAre you sure that you want to install the Default Snippet Package?"),MB_YESNO);
+ if (messageReturn == IDNO) return;
+ }
+
+
+ HGLOBAL res_handle = NULL;
+ HRSRC res;
+ char * res_data;
+ DWORD res_size;
+
+ // NOTE: providing g_hInstance is important, NULL might not work
+ res = FindResource((HINSTANCE)g_hModule, MAKEINTRESOURCE(SNIPPET_RESOURCE), RT_RCDATA);
+ //res = FindResource(NULL, MAKEINTRESOURCE(MY_RESOURCE), RT_RCDATA);
+
+ if (!res)
+ {
+ showMessageBox(TEXT("Error importing Default Snippets."));
+ return;
+ }
+
+ res_handle = LoadResource((HINSTANCE)g_hModule, res);
+ if (!res_handle)
+ {
+ showMessageBox(TEXT("Error importing Default Snippets."));
+ return;
+ }
+
+ res_data = (char*)LockResource(res_handle);
+ res_size = SizeofResource(NULL, res);
+
+ std::string defaultSnippetText;
+ defaultSnippetText = toString(res_data);
+
+ std::ofstream myfile;
+ myfile.open (g_downloadPath);
//myfile << getDefaultPackage();
- //myfile.close();
- //importSnippets(g_downloadPath);
+ myfile << defaultSnippetText;
+ myfile.close();
+ importSnippets(g_downloadPath);
+
+ //delete [] res_data;
}
void downloadDefaultPackage()

0 comments on commit 74f90cc

Please sign in to comment.
Something went wrong with that request. Please try again.