Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Notepad++ 在记事本+中编码折叠多个打开的行+;_Notepad++_Code Folding - Fatal编程技术网

Notepad++ 在记事本+中编码折叠多个打开的行+;

Notepad++ 在记事本+中编码折叠多个打开的行+;,notepad++,code-folding,Notepad++,Code Folding,我正试图根据运动捕捉语法文件(在Visual3D中)的代码创建一种用户定义的语言。我想根据以下语法折叠代码 公开辩论总是这样的 *************************************************************** !右膝屈曲 *************************************************************** 关闭部分总是。问题是,“开放”的第二行永远都不一样。有时可能是!左膝屈曲等,但始终以开始。有人知道如何将

我正试图根据运动捕捉语法文件(在Visual3D中)的代码创建一种用户定义的语言。我想根据以下语法折叠代码

公开辩论总是这样的
***************************************************************
!右膝屈曲

***************************************************************


关闭部分总是
。问题是,“开放”的第二行永远都不一样。有时可能是
!左膝屈曲
等,但始终以
开始。有人知道如何将其作为用户定义的语言输入吗?

这是我第一次研究此功能,但它似乎是可能的

不确定你是如何创建你的,但是我把你的片段放在记事本++中(在中间的一个中间加上一个额外的行,只看它是否保持折叠的范围),然后选择<代码>语言< /COD> = > >代码>从菜单中定义你的语言…< /代码>。 在下一个

用户定义语言
对话框窗口中,我在红色标记中设置了如下所示的选项,并显示了折叠块:


我猜您可以为您的信息设置相同的设置?

这是我第一次研究此功能,但似乎是可能的

不确定你是如何创建你的,但是我把你的片段放在记事本++中(在中间的一个中间加上一个额外的行,只看它是否保持折叠的范围),然后选择<代码>语言< /COD> = > >代码>从菜单中定义你的语言…< /代码>。 在下一个

用户定义语言
对话框窗口中,我在红色标记中设置了如下所示的选项,并显示了折叠块:


我猜您可以为您的信息设置相同的设置?

供感兴趣的人使用。通过修改“Operators1”字段,我能够获得Visual3D所需的输出。下面是“语言”文件。我希望这对某人有用

<NotepadPlus>
    <UserLang name="Vis3D" ext="" udlVersion="2.1">
        <Settings>
            <Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="1" />
            <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments">00!! 01 02 03 04</Keywords>
            <Keywords name="Numbers, prefix1"></Keywords>
            <Keywords name="Numbers, prefix2"></Keywords>
            <Keywords name="Numbers, extras1"></Keywords>
            <Keywords name="Numbers, extras2"></Keywords>
            <Keywords name="Numbers, suffix1"></Keywords>
            <Keywords name="Numbers, suffix2"></Keywords>
            <Keywords name="Numbers, range"></Keywords>
            <Keywords name="Operators1">/PIPELINE_PARAMETER_NAME /PROMPT /DATA_TYPE  /FILE_NAME /PARAMETER_NAME /SUFFIX /SET_PROMPT /USE_POSSIBLE_VALUES /Motion_File_Names /Query /Tags /POSSIBLE_VALUES /DEFAULT_VALUES  /PARAMETER_VALUE</Keywords>
            <Keywords name="Operators2"></Keywords>
            <Keywords name="Folders in code1, open">!**</Keywords>
            <Keywords name="Folders in code1, middle"></Keywords>
            <Keywords name="Folders in code1, close">!*</Keywords>
            <Keywords name="Folders in code2, open"></Keywords>
            <Keywords name="Folders in code2, middle"></Keywords>
            <Keywords name="Folders in code2, close"></Keywords>
            <Keywords name="Folders in comment, open"></Keywords>
            <Keywords name="Folders in comment, middle"></Keywords>
            <Keywords name="Folders in comment, close"></Keywords>
            <Keywords name="Keywords1">Assign_Tags_To_Files&#x000D;&#x000A;Set_Pipeline_Parameter_To_Folder_Path&#x000D;&#x000A;Prompt_For_Pipeline_Parameter_Value&#x000D;&#x000A;Open_File</Keywords>
            <Keywords name="Keywords2"></Keywords>
            <Keywords name="Keywords3"></Keywords>
            <Keywords name="Keywords4"></Keywords>
            <Keywords name="Keywords5"></Keywords>
            <Keywords name="Keywords6"></Keywords>
            <Keywords name="Keywords7"></Keywords>
            <Keywords name="Keywords8"></Keywords>
            <Keywords name="Delimiters">00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" fgColor="FFFFFF" bgColor="000000" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="LINE COMMENTS" fgColor="FFFFFF" bgColor="000000" fontStyle="0" nesting="0" />
            <WordsStyle name="NUMBERS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" fgColor="0080FF" bgColor="000000" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="OPERATORS" fgColor="00FF40" bgColor="000000" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" fgColor="FFFFFF" bgColor="000000" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS1" fgColor="00FF00" bgColor="000000" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS2" fgColor="0080FF" bgColor="000000" fontStyle="0" nesting="2" />
            <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>

00!! 01 02 03 04
/管道\参数\名称/提示/数据\类型/文件\名称/参数\名称/后缀/设置\提示/使用\可能值/运动\文件\名称/查询/标记/可能值/默认值/参数\值
!**
!*
将_标记_分配给_文件
;将_Pipeline_参数_设置为_Folder_Path
;提示输入管道参数值
;打开文件
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23

供感兴趣的人使用。通过修改“Operators1”字段,我能够获得Visual3D所需的输出。下面是“语言”文件。我希望这对某人有用

<NotepadPlus>
    <UserLang name="Vis3D" ext="" udlVersion="2.1">
        <Settings>
            <Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="1" />
            <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments">00!! 01 02 03 04</Keywords>
            <Keywords name="Numbers, prefix1"></Keywords>
            <Keywords name="Numbers, prefix2"></Keywords>
            <Keywords name="Numbers, extras1"></Keywords>
            <Keywords name="Numbers, extras2"></Keywords>
            <Keywords name="Numbers, suffix1"></Keywords>
            <Keywords name="Numbers, suffix2"></Keywords>
            <Keywords name="Numbers, range"></Keywords>
            <Keywords name="Operators1">/PIPELINE_PARAMETER_NAME /PROMPT /DATA_TYPE  /FILE_NAME /PARAMETER_NAME /SUFFIX /SET_PROMPT /USE_POSSIBLE_VALUES /Motion_File_Names /Query /Tags /POSSIBLE_VALUES /DEFAULT_VALUES  /PARAMETER_VALUE</Keywords>
            <Keywords name="Operators2"></Keywords>
            <Keywords name="Folders in code1, open">!**</Keywords>
            <Keywords name="Folders in code1, middle"></Keywords>
            <Keywords name="Folders in code1, close">!*</Keywords>
            <Keywords name="Folders in code2, open"></Keywords>
            <Keywords name="Folders in code2, middle"></Keywords>
            <Keywords name="Folders in code2, close"></Keywords>
            <Keywords name="Folders in comment, open"></Keywords>
            <Keywords name="Folders in comment, middle"></Keywords>
            <Keywords name="Folders in comment, close"></Keywords>
            <Keywords name="Keywords1">Assign_Tags_To_Files&#x000D;&#x000A;Set_Pipeline_Parameter_To_Folder_Path&#x000D;&#x000A;Prompt_For_Pipeline_Parameter_Value&#x000D;&#x000A;Open_File</Keywords>
            <Keywords name="Keywords2"></Keywords>
            <Keywords name="Keywords3"></Keywords>
            <Keywords name="Keywords4"></Keywords>
            <Keywords name="Keywords5"></Keywords>
            <Keywords name="Keywords6"></Keywords>
            <Keywords name="Keywords7"></Keywords>
            <Keywords name="Keywords8"></Keywords>
            <Keywords name="Delimiters">00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" fgColor="FFFFFF" bgColor="000000" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="LINE COMMENTS" fgColor="FFFFFF" bgColor="000000" fontStyle="0" nesting="0" />
            <WordsStyle name="NUMBERS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" fgColor="0080FF" bgColor="000000" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="OPERATORS" fgColor="00FF40" bgColor="000000" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" fgColor="FFFFFF" bgColor="000000" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS1" fgColor="00FF00" bgColor="000000" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS2" fgColor="0080FF" bgColor="000000" fontStyle="0" nesting="2" />
            <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>

00!! 01 02 03 04
/管道\参数\名称/提示/数据\类型/文件\名称/参数\名称/后缀/设置\提示/使用\可能值/运动\文件\名称/查询/标记/可能值/默认值/参数\值
!**
!*
将_标记_分配给_文件
;将_Pipeline_参数_设置为_Folder_Path
;提示输入管道参数值
;打开文件
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23