So, my snippet looks like this:
B4X:Private Sub Delete$Controller$ (id As Long) ' #Version = v2 ' #Desc = Delete Item in MinimaList ' #Elements = [":id"] If id < 1 Then HRM.ResponseError = "Invalid id value" HRM.ResponseCode = 404 Else Dim Index As Int = Main.$MinimaList$.IndexFromId(id) If Index < 0 Then HRM.ResponseError = "Item not found" HRM.ResponseCode = 404 Else Main.$MinimaList$.Remove(Index) HRM.ResponseCode = 200 End If End If If Main.SimpleResponse Then WebApiUtils.ReturnSimpleHttpResponse(HRM, "List", Response) Else WebApiUtils.ReturnHttpResponse(HRM, Response) End If If Main.KVS_ENABLED Then Main.WriteKVS("$MinimaList$", Main.$MinimaList$) End Sub
The IDE will highlight the variables. Once I replace the first variable, all other variables (with the same placeholder) will be replaced.
before:
View attachment 146183
after:
View attachment 146184
Don't forget the useful...
Note that the special $end$ marking sets the cursor position after the developer set the placeholders.