Сложите «краткую форму здесь документа»

235
Ian W

Извиняюсь за x-post из stackoverflow, но, похоже, здесь есть представления о [notepad ++].

Согласно странице man kshили man bash(RHEL 6.6.0)

<<< word

является эквивалентом:

<< EOF word EOF

Как заставить конфигуратор стиля Notepad ++ (Language: Shell) распознавать, чтобы не складываться <<<?

Складывается приятно на длинной форме, но складывается в конец файла на короткой форме.

Благодарю.

Edit - добавлен скриншот, чтобы уточнить следующий ответ @ PeterCJ. Кажется, это может быть связано со складыванием внутри функций - тем не менее ...

Сложите «краткую форму здесь документа»

После его ответа обновился с 6.5.3 (проблема до 6.8.8). Проблема существует в 6.7+ и решается в 6.8+.

0

1 ответ на вопрос

1
PryrtCJ

For me, Notepad++ properly folds on << EOF, but doesn't fold on <<< singleline. (screenshot here)

Perhaps you have a older version of NPP or a plugin. Try upgrading to NPP 6.8.8, or looking into whether plugins need upgrading. Full version info at menu:? > Debug Info: mine looks like

 Notepad++ v6.8.8 Build time : Dec 10 2015 - 01:11:37 Path : C:\Program Files (x86)\Notepad++\notepad++.exe Admin mode : ON Local Conf mode : OFF OS : Windows 7 Plugins : ComparePlugin.dll dbgpPlugin.dll mimeTools.dll NppConverter.dll NppExec.dll NppExport.dll NppFTP.dll NppTextFX.dll PluginManager.dll 

You can check for available plugin updates at Plugins > Plugin Manager > Show Plugin Manager and select the Updates tab. If any of your plugins need updating, then select the plugin and choose Update.

If you don't get more direct answers here, you might want to go to Notepad++ Community: Help Wanted forum and ask there, including a screenshot similar to mine and a dump from your ? > Debug Info. And if you get it solved, post and accept an answer back here (and point the SO x-post here) for the good of the superuser community.

Вот вам приз! Был запущен v 6.5.3. Я действительно хотел избежать обновления до 6.8, так как он помечает все виды плагинов как нестабильные, и в 6.6, 6.7 не было никаких других привлекательных функций или исправлений для обновления. Ian W 8 лет назад 0
Рад, что вы нашли это. :-) PryrtCJ 8 лет назад 0