Written by

Question Touggourt · Jul 16, 2025

HTML tag in IRIS

Hi,

After converting from Ensemble 2018 to IRIS 2024 I noticed that HTML tag is not recognized? 

I just copied & pasted this same from Ensemble to IRIS and in Ensemble looks fine!?

Thanks

Product version: IRIS 2024.3

Comments

Chris Stewart · Jul 16, 2025

I think it's the indention of the ClassMethod line. If you remove the leading space before it, then the Language Server should be happier about parsing the method

0
Touggourt  Jul 16, 2025 to Chris Stewart

That was my first action by putting the cursor at the beginning of the word Class and backspace but there no space, strange !? 

0
Robert Cemper · Jul 17, 2025

The correct syntax is &html <   your  content  >

I didn't detect the closing > in your screenshot

It generates:
Write "  your content  "
in the resulting .int code
Just the same as it did in Caché or Ensemble
created with NPI

0
Touggourt  Jul 18, 2025 to Robert Cemper

Ok I see where is the problem, the issue is that the code before it is raising errors, the DIV tag and && is not an acceptable syntax, any ideas what's wrong with that syntax, I tried double quotes for div and single & for and but still? 

Thanks

0
Robert Cemper  Jul 18, 2025 to Touggourt

In your screenshot, I see 

$('<div>') simpledialog2(

But W3Schools says:
https://www.w3schools.com/Jquery/jquery_syntax.asp

Basic syntax is: $(selector).action()
  • A $ sign to define/access jQuery
  • A (selector) to "query (or find)" HTML elements
  • A jQuery action() to be performed on the element(s)

I didn't write JavaScript for decades, and I'm not an expert.
BUT: I fail to detect the point after the closing bracket
It was just my Studio that marked it as an error.

created with NPI

0