カテゴリー:
秀丸エディタ
閲覧数:879 配信日:2014-10-14 18:49
作成例
GUIで作成した結果を保存
・GUIで操作した結果を出力しているだけなので、下記内容を理解する必要は全くない
▼D:/Program Files (x86)/Hidemaru/macro/Setting/js20141014-4.hilight
/<TreeWord>
/0000,0002,0000,00000000,00014553,"^[ \\t]*class[^:;{]*",""
/0000,0003,0000,00000000,00006156,"struct",""
/0000,0001,0000,00000000,00002652,"",""
/0001,0003,0000,00000000,000041D6,"switch",""
/0002,0003,0000,00000000,000041D6,"case",""
/0002,0003,0000,00000000,000061D6,"default",""
/0003,0002,0000,00000000,00000750,".prototype = {",""
/0004,0002,0000,00000000,00000750,".prototype={",""
/0005,0002,0000,00000000,00000750," = function",""
/0006,0003,0000,00000000,00000152,"return {",""
上記条件 + マクロ適用例
├$ = function(xpr){
├$$ = function(xpr){
├var createDigits = function(xpr){
│└return {
│ ├get : function(){
│ ├show : function(num){
│ ├warnUnder : function(num){
│ ├inc : function(num){
│ ├dec : function(num){
│ └reset : function(){
├var codes = function(html){
│├rgxGlobal = function(){
│└var highlight = function(code){
├var overlay = function(){
│└return {
│ ├show : function(fnc){
│ └hide : function(fnc){
├var timer = function(){
│└var stop = function(){
│ └return {
│ ├create : function(ms, fnc){
│ └sec : function(){
├var status = function(){
│└return {
│ ├show : function(typ, str, fnc){
│ ├hide : function(fnc){
│ ├point : function(num, fnc){
│ └getScore : function(){
├var results = function(){
│└return {
│ ├show : function(score){
│ └add : function(question, rightAns, yourAns, isCorrect){
├var questions = function(codes){
│├var uneval = function(xpr){
││└switch(typeof xpr){
││ ├case "string" : return '"' + xpr + '"';
││ └default : return xpr;
│├var next = function(){
│├var correct = function(ans){
│├var incorrect = function(ans){
│└var check = function(yourAns){
│ └return {
├var answer = function(){
│└elm.onkeydown = elm.onkeypress = elm.onkeyup = elm.change = function(){
│ └return {
│ ├get : function(){
│ ├reset : function(){
│ ├focus : function(){
│ ├lock : function(){
│ └unlock : function(){
├$("form").onsubmit = $("#btnAnswer").onclick = function(){
│├$("#btnStart").onclick = function(){
│└return {
│ └eval : function(/* xpr */){
└function(){
├transitions[LINEAR] = function(x){
├transitions[EASE_IN] = function(x){
├transitions[EASE_OUT] = function(x){
├transitions[EASE_OUT2] = function(x){
├transitions[SIN] = function(x){
├var createTransitionArray = function(type, dx){
├var animate = function(){
├var stop = function(){
│└css = function(elm, prp){
└var createTween = function(elm, sty, prp, from, to, dx, trn, repeat, comp, init){
├tweens.push(repeat ? function(){
├} : function(){
└return {
├resume : function(){
└add : function(elm, prm){
感想
実際に使用してみた感想
・正規表現を駆使しなければ抽出できないと思い込んでいた
→そんなことはない
→プロパティの設定項目は想定していたよりはるかに豊富
→GUI(プルダウン等で選択する)だけでかなり細かい指定が可能
ポイント
・「見出しの定義」に文字列を指定することで、ほぼ何でも出来る
・「インデントの深さでレベルを決める」にチェックを入れる
・表示範囲 … 行全体