以下を「なでしこ3.yaml」というファイル名で保存します。
attributes: [] characters: [] commands: - beginString: "^\u25CF.+" regularExpression: true commentDelimiters: inlineDelimiter: '#' comments: - beginString: //.* regularExpression: true - beginString: /\*.+\*/ regularExpression: true - beginString: "\u203B.*" regularExpression: true completions: [] extensions: - keyString: nako3 - keyString: nako filenames: [] interpreters: [] keywords: - beginString: "\u3053\u3053\u304B\u3089" - beginString: "\u3053\u3053\u307E\u3067" - beginString: "\u305D\u3046" - beginString: "\u305D\u308C" - beginString: "\u306A\u3089\u3070" - beginString: "\u3082\u3057" - beginString: "\u30A8\u30E9\u30FC" - beginString: "\u30A8\u30E9\u30FC\u76E3\u8996" - beginString: "\u4EE3\u5165" - beginString: "\u5148" - beginString: "\u53CD\u5FA9" - beginString: "\u53D6\u8FBC" - beginString: "\u56DE" - beginString: "\u56DE\u7E70\u8FD4" - beginString: "\u5909\u6570" - beginString: "\u5B9A" - beginString: "\u5B9A\u6570" - beginString: "\u5B9F\u884C\u901F\u5EA6\u512A\u5148" - beginString: "\u623B" - beginString: "\u629C" - beginString: "\u6761\u4EF6\u5206\u5C90" - beginString: "\u6B21" - beginString: "\u7D9A" - beginString: "\u7E70\u8FD4" - beginString: "\u9010\u6B21\u5B9F\u884C" - beginString: "\u9055\u3048\u3070" - beginString: "\u9593" - beginString: "\u9593\u7E70\u8FD4" - beginString: "\u95A2\u6570" metadata: author: "\u30AF\u30B8\u30E9\u98DB\u884C\u673A" description: "\u65E5\u672C\u8A9E\u30D7\u30ED\u30B0\u30E9\u30DF\u30F3\u30B0\u8A00\u8A9E\u306A\u3067\u3057\u30533\u306E\u5B9A\u7FA9\u30D5\u30A1\u30A4\u30EB" distributionURL: https://nadesi.com license: MIT version: '3.2' numbers: - beginString: (0x|0b|0o)[0-9]+ regularExpression: true - beginString: "(=|\uFF1D|\u306F|,|\\()[0-9.]+\\)?" regularExpression: true outlineMenu: - beginString: "^\u25CF.+" bold: true strings: - beginString: '"' endString: '"' ignoreCase: false - beginString: '''' endString: '''' ignoreCase: false - beginString: "\u300C" endString: "\u300D" ignoreCase: false regularExpression: true - beginString: "\u300E" endString: "\u300F" ignoreCase: false regularExpression: true - beginString: "\U0001F334" endString: "\U0001F334" ignoreCase: false regularExpression: true - beginString: "\U0001F33F" endString: "\U0001F33F" ignoreCase: false regularExpression: true types: [] values: [] variables: []
次いで、CotEditorのフォーマット「シンタックスカラーリングを有効にする」をオンにします。そして、右下の「●...」をクリックして、上記のファイルを読み込みます。