[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request - closing HTML tag detection/autocomplete

On 2020-09-03 23:58, Fred Graute wrote:

What I can't see right now is how this could be generalised so that
other modes could use it too. Something that I would prefer to have,
as StrongED contains very few mode specific functions.

There's languages, I think, where

 if blah then do

must (or can optionally) not just have "end" but "end if". And other
control structures also have eg

 case ...
 end case

 while ...
 end while

I've not programmed in any of these recently, but code that changed a
plain "end" to "end <whatever>" might be useful to someone.

Likewise some (all?) for/next  loops require the loop variable to be
named in the "next" statement.

Even in languages that don't need that, some people might code eg

  do i = 1 to 10
  end /* i */

so there's certainly scope for language-specific insertion of some
sort of literals.

Jeremy Nicoll - my opinions are my own