<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: What language is Arcade most like for syntax highlighting? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/what-language-is-arcade-most-like-for-syntax/m-p/404063#M2708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; I'll just add that I discovered that Pygments has about half a dozen sub-lexers for Javascript variants.&amp;nbsp; When I tested these in Mediawiki/Syntaxhighlight to see if they were compatible with Arcade (albeit for completely the wrong language) one or two aspired to the mediocracy of the javascript lexer, the rest were dire/inapplicable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This isn't a deal breaker for me/us, so will go onto the backburner (read: locked filing cabinet in disused toilet at bottom of unlit stairwell) until I get spare time to look at it.&amp;nbsp; I had a brief look at making a lexer, seems quite overkill for the benefit of making text look nice.&amp;nbsp; I might look at simply altering the existing colour values for the javascript lexer as a quick fix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Oct 2020 03:01:11 GMT</pubDate>
    <dc:creator>AndrewQuee</dc:creator>
    <dc:date>2020-10-30T03:01:11Z</dc:date>
    <item>
      <title>What language is Arcade most like for syntax highlighting?</title>
      <link>https://community.esri.com/t5/developers-questions/what-language-is-arcade-most-like-for-syntax/m-p/404058#M2703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We store&amp;nbsp;business information using&amp;nbsp;&lt;A href="https://www.mediawiki.org/wiki/MediaWiki"&gt;mediawiki &lt;/A&gt;and share template code snippets from all our development environments using the &lt;A href="https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Supported_languages"&gt;syntaxhighlight extension which uses Pygments&lt;/A&gt; to do automatic syntax formatting in the page.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arcade is not in the &lt;A href="https://pygments.org/languages/"&gt;'hundreds of languages' Pygments supports&lt;/A&gt; (and I acknowledge this is not the venue to ask for Pygments or Mediawiki support) but I just wanted to ask what root language is Arcade &lt;EM&gt;most&lt;/EM&gt; like?&amp;nbsp;&amp;nbsp;It doesn't need to be 100% accurate but anyone who's read code with &amp;lt;pre&amp;gt; tags knows it doesn't 'spark joy'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Over at &lt;A class="link-titled" href="https://www.esri.com/arcgis-blog/products/mapping/mapping/using-arcade-expressions-in-web-apps/" title="https://www.esri.com/arcgis-blog/products/mapping/mapping/using-arcade-expressions-in-web-apps/"&gt;Using Arcade expressions in web apps&lt;/A&gt;&amp;nbsp;&amp;nbsp;they said&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Arcade is similar to other scripting and expression languages, such as SQL, Python, VBScript and spreadsheet formulas. ...It has syntax similar to JavaScript...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The closest and nicest-looking syntax I've seen is java but I was wondering out of those hundreds what the closest match is.&amp;nbsp; Javascript is mentioned a lot over at&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/arcade/" title="https://developers.arcgis.com/javascript/latest/guide/arcade/"&gt;Arcade | ArcGIS API for JavaScript 4.17&lt;/A&gt;&amp;nbsp;&amp;nbsp;but when I apply that under syntaxhighlighter it actually looks quite 'meh', although that could just be my style markup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: This is what I mean by 'meh' styling if you're interested.&amp;nbsp; No fault of Arcade, Mediawiki or Pygments, it is what it is.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Comparison of default MW markup and Esri markup for Arcade" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/512022_2020-10-29 10_19_44-Andrew" s="" pc="" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2020 01:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/what-language-is-arcade-most-like-for-syntax/m-p/404058#M2703</guid>
      <dc:creator>AndrewQuee</dc:creator>
      <dc:date>2020-10-28T01:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: What language is Arcade most like for syntax highlighting?</title>
      <link>https://community.esri.com/t5/developers-questions/what-language-is-arcade-most-like-for-syntax/m-p/404059#M2704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;syntax highlighting and code linting are 'meh' or absent.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/ideas/18665" target="_blank"&gt;https://community.esri.com/ideas/18665&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;has a particular request in general, and specific to an IDE.&amp;nbsp; Perhaps you can jump on that idea or use the javascript (as suggested there as well) in the interim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:33:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/what-language-is-arcade-most-like-for-syntax/m-p/404059#M2704</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-06-22T08:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: What language is Arcade most like for syntax highlighting?</title>
      <link>https://community.esri.com/t5/developers-questions/what-language-is-arcade-most-like-for-syntax/m-p/404060#M2705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/5502"&gt;Andrew Quee&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add to what&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/405782"&gt;Dan Patterson&lt;/A&gt;&amp;nbsp;is suggesting, in GeoNet I always use JavaScript as syntax highlighting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Mediawiki in the past (a long time ago) when I was coding with ArcObjects we creating our own highlighting language including all the objects from ArcObjects. I don't know Pygments but maybe it has a an option to define a&amp;nbsp;customized language and use JavaScript as basis and include the Arcade functions.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2020 13:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/what-language-is-arcade-most-like-for-syntax/m-p/404060#M2705</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-10-28T13:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: What language is Arcade most like for syntax highlighting?</title>
      <link>https://community.esri.com/t5/developers-questions/what-language-is-arcade-most-like-for-syntax/m-p/404061#M2706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For those that are bored&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pygments.org/docs/lexerdevelopment/" title="https://pygments.org/docs/lexerdevelopment/"&gt;Write your own lexer — Pygments&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A class="link-titled" href="https://pygments.org/docs/lexers/#lexers-for-javascript-and-related-languages" title="https://pygments.org/docs/lexers/#lexers-for-javascript-and-related-languages"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Available lexers — Pygments&lt;/A&gt;&amp;nbsp;Java-ish link&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2020 15:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/what-language-is-arcade-most-like-for-syntax/m-p/404061#M2706</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-10-28T15:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: What language is Arcade most like for syntax highlighting?</title>
      <link>https://community.esri.com/t5/developers-questions/what-language-is-arcade-most-like-for-syntax/m-p/404062#M2707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much Xander and &lt;A href="https://community.esri.com/migrated-users/405782"&gt;Dan Patterson&lt;/A&gt;‌, I knew it was an easy question, I just&amp;nbsp;couldn't find the answer in the FAQ etc.&amp;nbsp; &amp;nbsp;I really think that the issue is in my markup, so while I might not be up to writing a lexer, I definitely think I can do something on the javascript configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone on the Esri side would like to expand on what they use for the nice markup shown in code snippets on Esri websites that'd be lovely, otherwise I might do some reverse-engineering through mediawiki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2020 23:12:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/what-language-is-arcade-most-like-for-syntax/m-p/404062#M2707</guid>
      <dc:creator>AndrewQuee</dc:creator>
      <dc:date>2020-10-28T23:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: What language is Arcade most like for syntax highlighting?</title>
      <link>https://community.esri.com/t5/developers-questions/what-language-is-arcade-most-like-for-syntax/m-p/404063#M2708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; I'll just add that I discovered that Pygments has about half a dozen sub-lexers for Javascript variants.&amp;nbsp; When I tested these in Mediawiki/Syntaxhighlight to see if they were compatible with Arcade (albeit for completely the wrong language) one or two aspired to the mediocracy of the javascript lexer, the rest were dire/inapplicable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This isn't a deal breaker for me/us, so will go onto the backburner (read: locked filing cabinet in disused toilet at bottom of unlit stairwell) until I get spare time to look at it.&amp;nbsp; I had a brief look at making a lexer, seems quite overkill for the benefit of making text look nice.&amp;nbsp; I might look at simply altering the existing colour values for the javascript lexer as a quick fix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2020 03:01:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/what-language-is-arcade-most-like-for-syntax/m-p/404063#M2708</guid>
      <dc:creator>AndrewQuee</dc:creator>
      <dc:date>2020-10-30T03:01:11Z</dc:date>
    </item>
  </channel>
</rss>

