Not sure if this helps but here is wiki page in adding new languages that may help.
https://cwiki.apache.org/confluence/plugins/servlet/mobile?contentId=173084490#content/view/173084490 Eric Bresie ebre...@gmail.com (mailto:ebre...@gmail.com) > On January 9, 2023 at 1:01:13 AM CST, Michael Bien <mbie...@gmail.com > (mailto:mbie...@gmail.com)> wrote: > this might be of interest for some here: > https://github.com/apache/netbeans/pull/4885 > > dependent on the usecase this might be a quick && elegant way to embed > other languages. > > -mbien > > On 08.01.23 21:59 (x-apple-data-detectors://5), Oliver Rettig wrote: > > Hi, > > > > I am also interested in such functionality to put code written in our DSLs > > into java source code. In the meantime we put the code in extra files with > > specific filesuffix and use the netbeans api for syntax highlighting etc. > > > > best regards > > Oliver > > > > > Hi, > > > I have got a question regarding the embedded language support of Netbeans. > > > > > > > > > If I write my own grammer/dsl with JavaCC and my language contains a > > > specific tag that marks the beginning and ending of an embedded language, > > > lets say Java, does Netbeans automatically take Lexer, Parsers, > > > CodeCompletion etc. from the embedded language? > > > > > > > > > What I found out is that there are two possibilities. The first uses the > > > xml > > > file for defining the start/end tag. The second way is the programmatical > > > approach, I think using the Lexer class. Does anyone of you know a short > > > example for both strategies? Are there any tutorials available? I would > > > specially be interested in the xml approach Thanks. > > > > > > > > > Gesendet vonOutlook für iOS > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > > > (mailto:users-unsubscr...@netbeans.apache.org) > > > For additional commands, e-mail: users-h...@netbeans.apache.org > > > (mailto:users-h...@netbeans.apache.org) > > > > > > For further information about the NetBeans mailing lists, visit: > > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > > (mailto:users-unsubscr...@netbeans.apache.org) > > For additional commands, e-mail: users-h...@netbeans.apache.org > > (mailto:users-h...@netbeans.apache.org) > > > > For further information about the NetBeans mailing lists, visit: > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > (mailto:users-unsubscr...@netbeans.apache.org) > For additional commands, e-mail: users-h...@netbeans.apache.org > (mailto:users-h...@netbeans.apache.org) > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >