"smart_sources:シンタックスハイライト付きのエディタを簡易的に実装する.md": {"path":"シンタックスハイライト付きのエディタを簡易的に実装する.md","last_embed":{"hash":null},"embeddings":{},"last_read":{"hash":"a7flsb","at":1759879044529},"class_name":"SmartSource","last_import":{"mtime":1734920760399,"size":694,"at":1759879044540,"hash":"a7flsb"},"blocks":{"#---frontmatter---":[1,3],"#tips #scrap":[4,13],"#tips #scrap#{1}":[6,13]},"outlinks":[{"title":"How to add syntax highlighting to code as a user types in realtime with vanilla JavaScript | Go Make Things","target":"https://gomakethings.com/how-to-add-syntax-highlighting-to-code-as-a-user-types-in-realtime-with-vanilla-javascript/","line":6}],"metadata":{"date":"2024-12-23 11:23","tags":["#tips","#scrap"]},"task_lines":[]}, "smart_sources:シンタックスハイライト付きのエディタを簡易的に実装する.md": {"path":"シンタックスハイライト付きのエディタを簡易的に実装する.md","embeddings":{"TaylorAI/bge-micro-v2":{"vec":[-0.10527244,-0.01607228,-0.02256623,-0.02918234,0.02718616,-0.00895684,0.00612582,0.02156935,0.01651809,0.01256923,-0.01435259,-0.01929673,-0.00446508,0.09701999,0.06076407,0.03540703,-0.02373244,0.01536551,-0.11135993,-0.03166704,0.11999945,0.03035901,-0.05633474,-0.03425138,0.00180843,0.05309596,-0.0318284,-0.0228136,-0.03157883,-0.16193219,-0.03658944,0.03366149,0.03059743,-0.00171996,-0.01893796,-0.04317074,-0.03141601,0.03553806,-0.01868039,0.03385416,0.03487068,-0.03122649,-0.02421474,-0.03285328,-0.01973136,-0.05353296,-0.04881281,-0.0064697,-0.03898007,-0.01869388,-0.0318554,-0.01163215,0.04965373,-0.02786987,0.05418517,0.01709484,0.07051884,0.05931735,0.00723813,-0.02781619,0.01858162,0.0155544,-0.1730887,0.09317236,0.02130176,-0.02940883,-0.02895462,0.00196491,0.0228088,0.0296446,-0.04278979,0.02937909,-0.04075949,0.05065902,-0.01124207,-0.02153122,0.0140457,-0.03797778,0.02375884,-0.00369958,-0.05806153,0.01462252,0.00614096,-0.00261355,0.00311568,0.01151601,-0.00797432,-0.00440003,0.02236455,-0.01181379,-0.00205187,-0.069065,0.02484322,0.04152253,-0.03947925,0.00807962,-0.0399068,0.01552868,-0.00658848,0.13425966,-0.06479082,0.00741023,-0.03263778,-0.03180993,0.02319999,-0.03395097,0.0221612,-0.04078466,0.00838107,-0.03714686,-0.04271165,0.03215342,0.02001673,-0.04023807,-0.02220669,0.02120717,0.0347067,-0.00863701,0.06671654,-0.01100742,0.05393835,-0.01203051,0.0109961,-0.01386597,0.02273145,0.03904524,-0.00298656,0.04182189,0.03586074,0.07838386,0.06852602,0.07272029,-0.06920541,0.046819,-0.01730185,-0.00237536,-0.03134366,0.00367112,0.02803158,-0.05038096,-0.03978471,-0.09444629,-0.01550262,-0.02291941,-0.0066317,0.09728884,-0.08137603,0.03032236,-0.00699752,0.01527393,-0.0321172,0.05295764,-0.04954135,-0.00713549,-0.02107066,0.00746667,0.13567024,0.05927019,-0.06057915,0.00062397,-0.03854032,-0.01269313,-0.04782642,0.04200115,-0.00097227,-0.05611212,-0.04516418,0.0334266,0.03824358,-0.04166022,-0.03397262,0.03799016,-0.03165112,-0.00596953,0.08744071,0.03502364,0.02566509,-0.02506064,0.00320897,0.0207833,0.07271727,-0.04867331,-0.04712646,0.04664537,-0.01054066,-0.06519336,0.02898552,-0.02762553,0.02079528,0.02455251,-0.08444155,-0.01196905,-0.01014029,0.01249068,-0.04727988,0.00215133,-0.01114776,-0.04325937,0.02694731,-0.05703377,0.11851884,0.04203609,-0.04381133,-0.06865431,0.04967598,-0.01151008,0.04658472,-0.03629319,0.04410818,0.03408699,-0.10521633,0.01788864,0.10275809,0.05070331,-0.01577974,-0.02175643,-0.02064628,0.06772516,-0.00521341,0.03540838,-0.03496578,0.0026625,-0.11140643,-0.20618622,0.01790386,0.05677167,-0.05322267,-0.04864812,-0.06130886,0.0319646,0.00914215,0.02083814,0.06218431,0.07981349,-0.01269401,-0.03184126,-0.05065694,0.01828888,0.04255966,0.00455727,-0.04089198,0.02222904,0.01722806,-0.03450928,0.05258172,0.01432816,-0.03810963,0.03935678,-0.04400633,0.14324766,0.06391035,0.01045895,-0.11878065,0.09572745,-0.020468,-0.00659422,-0.11453545,0.0561269,0.02478951,-0.03380511,-0.03146597,0.03888601,-0.02085049,0.04030416,-0.02592929,-0.01686209,-0.05955654,0.00124473,-0.06193356,0.00967641,-0.07472354,-0.01991588,0.03898547,0.0375955,-0.00564814,0.06022028,0.07868956,-0.05740315,-0.06267231,-0.06619886,-0.01293118,-0.04059315,0.07345486,0.00793508,-0.00193803,0.00694285,-0.05491306,0.04425381,0.0332514,-0.01455922,-0.02170317,0.01476385,0.00083979,-0.00355784,0.13662824,-0.0283488,0.02423513,0.06535561,0.0667346,-0.02498247,-0.00008438,0.01325889,-0.00800476,-0.02189216,0.03927877,0.07717687,0.02808536,0.0177509,0.04260071,0.01808197,-0.07764328,0.03334164,0.01029761,-0.07178295,-0.00427016,-0.00116832,0.00892242,-0.00509187,-0.00374337,-0.30676261,0.05253579,0.02650539,0.01567076,0.02772608,0.02423742,0.01196115,-0.05192385,-0.07939786,0.02554037,-0.02268367,0.05166595,0.03264249,-0.02929413,0.01013738,0.00108294,0.02183331,0.03125997,0.05498014,-0.09603112,0.02636164,0.00675423,0.22108071,-0.00654949,0.03596072,0.01487686,0.00248539,-0.00388846,0.11588291,0.02872881,-0.04465495,0.07817947,0.14425641,0.02957233,0.02376455,-0.02007501,-0.01003839,0.00747242,-0.01688496,-0.01341653,-0.02807864,0.05311791,-0.02860422,0.0112088,0.03687134,-0.0535846,-0.02297217,-0.06799607,-0.04244182,-0.02589189,-0.03409069,-0.00139919,-0.01126012,0.02040467,-0.00071328,0.05971349,-0.00178857,0.04900475,-0.03252542,0.04628971,0.03067525,-0.04151325,0.02365751,0.0560776,0.0016148],"last_embed":{"hash":"a7flsb","tokens":259}}},"last_read":{"hash":"a7flsb","at":1759879095409},"class_name":"SmartSource","last_import":{"mtime":1734920760399,"size":694,"at":1759879044540,"hash":"a7flsb"},"blocks":{"#---frontmatter---":[1,3],"#tips #scrap":[4,13],"#tips #scrap#{1}":[6,13]},"outlinks":[{"title":"How to add syntax highlighting to code as a user types in realtime with vanilla JavaScript | Go Make Things","target":"https://gomakethings.com/how-to-add-syntax-highlighting-to-code-as-a-user-types-in-realtime-with-vanilla-javascript/","line":6}],"metadata":{"date":"2024-12-23 11:23","tags":["#tips","#scrap"]},"task_lines":[],"last_embed":{"hash":"a7flsb","at":1759879095337}},"smart_blocks:シンタックスハイライト付きのエディタを簡易的に実装する.md#tips #scrap": {"path":null,"embeddings":{"TaylorAI/bge-micro-v2":{"vec":[-0.10403056,-0.01342276,-0.02202975,-0.02988723,0.01914685,-0.00323154,0.01819862,0.02789377,0.02055781,0.00396821,-0.02411434,-0.01719482,-0.00103512,0.09084394,0.05558228,0.0367837,-0.02015149,0.0380239,-0.11634141,-0.03877723,0.10971783,0.02460226,-0.05406394,-0.02697142,-0.00075594,0.04991641,-0.0368156,-0.0242913,-0.02738139,-0.15524808,-0.0330778,0.03204574,0.02450554,-0.00412593,-0.02740827,-0.03457815,-0.04320663,0.0387754,-0.02687174,0.02913137,0.03314344,-0.03068965,-0.03202613,-0.02451919,-0.01901154,-0.05660645,-0.04092305,-0.01424293,-0.03133461,-0.02124884,-0.03585517,-0.00989429,0.0490471,-0.02791728,0.04250804,0.0116231,0.06736388,0.06187356,0.00162422,-0.02981129,0.01899188,0.02129207,-0.16129833,0.09011789,0.03921439,-0.01994478,-0.03052994,0.00152694,0.0164573,0.0426487,-0.03645519,0.02947003,-0.03717966,0.05886257,-0.02410244,-0.02980852,0.01103351,-0.03197726,0.01226833,0.00216043,-0.07111956,0.00373565,0.00610692,0.00516581,0.00148421,0.01177828,-0.01002183,0.00226326,0.0299,-0.01765878,0.00872696,-0.06850243,0.0240135,0.040692,-0.03134597,0.00034116,-0.04099645,0.01058468,-0.01304726,0.14411362,-0.05538483,-0.01095461,-0.01876815,-0.03891782,0.02320145,-0.03248401,0.02447212,-0.02961644,0.00286482,-0.03612524,-0.03674923,0.0301624,0.00244606,-0.0338822,-0.02717682,0.01598835,0.0229265,-0.00518655,0.0588524,-0.01930451,0.04251165,-0.01134384,0.00972262,-0.01302561,0.02883378,0.03322783,-0.0169549,0.04341378,0.04211533,0.08155283,0.06279495,0.07901651,-0.0706174,0.05148,-0.02285282,0.00283555,-0.02909417,0.00457097,0.02643237,-0.04440667,-0.02866609,-0.08688173,-0.01924419,-0.0287443,0.00889507,0.09354176,-0.08530219,0.03139417,-0.01313431,0.02202747,-0.02267296,0.04373012,-0.05644757,-0.00227237,-0.03404919,0.00889142,0.14055289,0.05912588,-0.05591115,-0.0010236,-0.03186652,-0.011582,-0.05072952,0.04323089,-0.0025248,-0.04857884,-0.06471519,0.02526347,0.02534803,-0.04165084,-0.0319055,0.03678854,-0.04473842,0.00170554,0.08647928,0.02388982,0.01435205,-0.02625047,0.02089689,0.02206637,0.08800863,-0.04296955,-0.03823366,0.04087825,-0.01107077,-0.06311207,0.01810782,-0.02679412,0.0180757,0.03222784,-0.09349788,0.00004603,0.00040899,0.00537437,-0.05165353,0.01433131,-0.00773271,-0.05081658,0.03345595,-0.06044986,0.11930324,0.04692241,-0.04600231,-0.06197554,0.03930578,-0.00621877,0.04184952,-0.03657471,0.04450148,0.02696698,-0.10850365,0.01747238,0.10471577,0.05290105,-0.02452375,-0.028914,-0.02397795,0.06950092,-0.0010351,0.03043151,-0.03360022,-0.01138065,-0.11704493,-0.20820707,0.01235177,0.05678243,-0.04885532,-0.04598714,-0.07270932,0.03624388,0.021212,0.00500175,0.05854331,0.07901872,-0.02719279,-0.02904567,-0.05035612,0.03002598,0.03770905,0.0023672,-0.03138849,0.02727116,0.01225642,-0.03145782,0.05905764,0.0162893,-0.03866278,0.03971559,-0.05369783,0.14750266,0.05873246,0.01459531,-0.11939111,0.08879206,-0.02111332,-0.00557881,-0.11894131,0.05798747,0.04204444,-0.03418506,-0.03104958,0.04276963,-0.01165147,0.04498265,-0.02435638,-0.02182357,-0.06848299,0.00089953,-0.06698821,-0.00316799,-0.08329517,-0.00844165,0.03695118,0.03305,-0.00166801,0.05818161,0.08540954,-0.0567357,-0.05779944,-0.06033342,-0.01320999,-0.04969304,0.07319713,0.01225643,-0.01023491,0.01833329,-0.06609952,0.04727899,0.04175884,-0.0116381,-0.01020201,0.0327384,-0.00204382,-0.00338839,0.14117952,-0.02549244,0.02843508,0.05928578,0.0693426,-0.020479,-0.0015654,0.0071255,-0.01087814,-0.02906797,0.04387291,0.06762237,0.02574313,0.01363392,0.05037044,0.02346699,-0.08127106,0.03047569,0.02035715,-0.06836925,0.01389712,0.00441591,0.01613054,-0.01767401,0.00523314,-0.2972762,0.05032012,0.02311002,0.01993529,0.02814386,0.02756795,0.03068563,-0.05738709,-0.07370576,0.02115023,-0.01417876,0.03998883,0.03000907,-0.02626878,0.01445823,-0.00313373,0.02711072,0.04238011,0.06373201,-0.09548923,0.02569219,0.00317035,0.23031268,-0.00735146,0.03401923,0.0080071,0.0073091,-0.00069942,0.10975689,0.03765118,-0.03665707,0.07806008,0.13095398,0.01828749,0.02530169,-0.01197408,-0.00412838,0.00155446,-0.00943501,-0.01558587,-0.02181263,0.05119078,-0.03544502,0.00907966,0.03321397,-0.06652863,-0.01512103,-0.06500436,-0.05043018,-0.01746999,-0.04020095,0.01256128,-0.01101182,0.0097954,0.00680567,0.04801307,-0.01979803,0.04683012,-0.03200881,0.0462523,0.0306176,-0.04008422,0.02437637,0.05484319,0.00068257],"last_embed":{"hash":"17xdqf3","tokens":243}}},"text":null,"length":0,"last_read":{"hash":"17xdqf3","at":1759879095377},"key":"シンタックスハイライト付きのエディタを簡易的に実装する.md#tips #scrap","lines":[4,13],"size":443,"outlinks":[{"title":"How to add syntax highlighting to code as a user types in realtime with vanilla JavaScript | Go Make Things","target":"https://gomakethings.com/how-to-add-syntax-highlighting-to-code-as-a-user-types-in-realtime-with-vanilla-javascript/","line":3}],"class_name":"SmartBlock","last_embed":{"hash":"17xdqf3","at":1759879095377}}, "smart_blocks:シンタックスハイライト付きのエディタを簡易的に実装する.md#tips #scrap#{1}": {"path":null,"embeddings":{"TaylorAI/bge-micro-v2":{"vec":[-0.10654368,-0.01343289,-0.02723297,-0.02701522,0.0218835,-0.00677117,0.01402062,0.02613329,0.01769532,0.00337173,-0.02380829,-0.0203414,0.00104545,0.09501769,0.05521705,0.04008552,-0.01917323,0.03910658,-0.11620393,-0.03729225,0.10963302,0.02502818,-0.04926521,-0.03296652,-0.00305077,0.0544189,-0.03924062,-0.02060996,-0.02943608,-0.15485473,-0.02936629,0.02956106,0.02323162,-0.004636,-0.02395437,-0.03358458,-0.04232171,0.04040511,-0.02609805,0.02858782,0.03132839,-0.02878539,-0.03290924,-0.02282185,-0.0221257,-0.0618571,-0.03897523,-0.01584511,-0.03175751,-0.02517517,-0.03344082,-0.00985016,0.05132779,-0.02291051,0.03729861,0.01471806,0.06472469,0.0639282,0.00375514,-0.03260373,0.02096619,0.02043029,-0.15775189,0.08870094,0.04094529,-0.02130304,-0.03487111,0.00533996,0.01717653,0.04275611,-0.04351454,0.02848481,-0.03934117,0.05922666,-0.02194815,-0.02923215,0.01539676,-0.02821765,0.01108181,0.00319256,-0.07536486,0.00336489,0.00350137,0.00704622,-0.00134729,0.0120628,-0.00690687,-0.00277601,0.03196938,-0.01355132,0.00433718,-0.06911238,0.0207293,0.04344904,-0.03169158,0.00214574,-0.04143849,0.01300268,-0.00471908,0.14579219,-0.05645696,-0.00903323,-0.02308652,-0.04003491,0.02140043,-0.0270412,0.02360548,-0.02916007,0.0030728,-0.04252487,-0.03911194,0.03351083,0.00258357,-0.03374942,-0.02631536,0.01586692,0.01705018,-0.00718563,0.05900355,-0.02108979,0.04004331,-0.01117937,0.0072685,-0.01699512,0.02635323,0.03264221,-0.01475808,0.04521517,0.04272717,0.08109708,0.0628895,0.07980663,-0.0686443,0.05362112,-0.02494921,0.00281609,-0.03338843,0.00981163,0.0192122,-0.04602638,-0.03055902,-0.08658359,-0.01799462,-0.0258734,0.00757646,0.09113678,-0.08650069,0.03078443,-0.01500395,0.0209224,-0.03036869,0.04236212,-0.05746013,-0.00090443,-0.03695375,0.00344549,0.13625,0.05633971,-0.05236335,-0.00441246,-0.03324014,-0.01035281,-0.04969627,0.04581883,-0.00735838,-0.04387707,-0.06585867,0.02912307,0.02892049,-0.04250465,-0.03398469,0.03950155,-0.04098959,0.00049435,0.08549556,0.02427696,0.01290449,-0.02797695,0.02028135,0.02139369,0.08631361,-0.04296411,-0.03772458,0.03797413,-0.01001832,-0.06630244,0.0188739,-0.02248084,0.01654714,0.03383138,-0.08713374,0.00640593,0.00469526,0.0042171,-0.05073741,0.01419478,-0.00777415,-0.04532364,0.03436337,-0.05826662,0.1251626,0.04596144,-0.04384658,-0.06229579,0.03793731,-0.00779407,0.04027605,-0.03601503,0.04315809,0.02502972,-0.10826584,0.01875859,0.10428952,0.05625937,-0.02083279,-0.03182747,-0.03065204,0.06846154,0.002106,0.03746366,-0.03832006,-0.01260157,-0.11106879,-0.20840189,0.018779,0.05800252,-0.05402247,-0.04713326,-0.07519031,0.03333608,0.01865334,0.00462017,0.06582584,0.07896984,-0.02537795,-0.02621669,-0.0453298,0.03406939,0.03674525,0.00278281,-0.03374669,0.02780758,0.00940665,-0.03264872,0.05089081,0.01166581,-0.0362457,0.04258479,-0.04882724,0.14905816,0.05970532,0.01682401,-0.12232407,0.08526563,-0.01867519,-0.00298253,-0.11822718,0.05468716,0.04418812,-0.0340552,-0.03139763,0.04088281,-0.01195432,0.04024623,-0.02577346,-0.0217994,-0.06972627,0.00986308,-0.06678255,-0.00468776,-0.0831909,-0.00858676,0.04460869,0.03059665,-0.0017482,0.05697376,0.08695892,-0.055301,-0.05901702,-0.05983982,-0.01478657,-0.04702807,0.07358573,0.01343187,-0.01434378,0.01578703,-0.06623057,0.05438365,0.04265586,-0.0071197,-0.01621283,0.02921717,-0.00814347,-0.00332374,0.1409758,-0.02708621,0.02303192,0.061939,0.07069012,-0.02651356,0.00249692,0.00732567,-0.01186708,-0.02526091,0.04768144,0.06636969,0.02434673,0.01330408,0.05210286,0.02085461,-0.07754009,0.03066834,0.02106246,-0.0695633,0.01146529,0.00704301,0.01857065,-0.01419334,0.00334205,-0.29622409,0.05133757,0.02425257,0.01676425,0.03070418,0.02500681,0.03319652,-0.05721596,-0.06955702,0.01929885,-0.01252733,0.03977032,0.03241661,-0.02479798,0.01173202,-0.00424324,0.02728719,0.03819152,0.05778392,-0.09774508,0.02838888,-0.00014059,0.22974677,-0.01010577,0.03640336,0.00999115,0.00647378,-0.0020482,0.10677745,0.03485308,-0.03606809,0.07669201,0.13611118,0.01239494,0.0215246,-0.01268147,-0.00023532,0.00861241,-0.01029216,-0.01474749,-0.02435878,0.05013677,-0.03892283,0.01255306,0.03210144,-0.06389083,-0.01840276,-0.06501825,-0.04847049,-0.01754421,-0.03740473,0.0123965,-0.01052396,0.0058616,0.01029413,0.04971113,-0.01592349,0.0505675,-0.03425732,0.04777168,0.02900512,-0.03644223,0.02238484,0.06046589,-0.00212758],"last_embed":{"hash":"696ya4","tokens":241}}},"text":null,"length":0,"last_read":{"hash":"696ya4","at":1759879095409},"key":"シンタックスハイライト付きのエディタを簡易的に実装する.md#tips #scrap#{1}","lines":[6,13],"size":428,"outlinks":[{"title":"How to add syntax highlighting to code as a user types in realtime with vanilla JavaScript | Go Make Things","target":"https://gomakethings.com/how-to-add-syntax-highlighting-to-code-as-a-user-types-in-realtime-with-vanilla-javascript/","line":1}],"class_name":"SmartBlock","last_embed":{"hash":"696ya4","at":1759879095409}},