Menu

Настройка блоков

Michael
2008-09-12
2012-11-13
  • Michael

    Michael - 2008-09-12

    В системе есть безусловно бесценная возможность настройки пользовательской расцветки и ключевых слов, открывающих и закрывающих блоки слов.
    Одно мне пока непонятно: что следует сделать, чтобы каждый конкретный тип блока закрывался именно его закрывающим словом, а не любым из списка закрывающих? Или, что более точно, - чтобы открытый блок не закрывался никакими словами кроме конкретно указанного. Дабы иметь возможность контролировать закрытие блоков корректными закрывающими словами.

    Приммер
    If (expr) then
    while (expr2) do
    endloop
    endif
    Это орректный кусок кода, все блоки должны быть закрыты

    If (expr) then
    while (expr2) do
    endloop
    endloop
    Это заведомо некорректный кусок кода и блок "if" должен остаться незакрытым. В настоящее же время при перечислении слов "if, while" в качестве открывающих блоки и "endif, endloop" в качестве закрывающих, оба блока во втором примере окажутся закрытыми.

    Как настроить Npp?

     
    • Valerij Primachenko

      he wrote: (short compilation)

      it is possible to close a block ONLY with the specific end keyword for example

      If (expr) then
      while (expr2) do
      endloop
      endif
      is korrect so it will be correct closed where
      If (expr) then
      while (expr2) do
      endloop
      endloop
      will be marked or something like because endloop is not the end mark for if

       
    • Michel Merlin

      Michel Merlin - 2008-09-13

      Please, I am (like most people from every country, including yours and mine) doing the little effort it takes to write in English (despite I never learnt it at school). That way I have just ONE language to learn.

      If each of us starts to write in their own language, each of us will have to learn ~200 languages.

      If you really can't afford the effort 90% are doing, then please at least find a forum nearer from your language (I don't even know which one it is: Russian?)

      Versailles, Sat 13 Sep 2008 13:25:40 +0200