<?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: Please read: How to post Python code in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/missing-title-285671/m-p/749598#M2479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: curtvprice&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Wouldn't be better to use &lt;A href="http://pastebin.com"&gt;pastebin.com&lt;/A&gt;? It provide colorize syntax. Maybe wysiwyg has a plugin to python code block?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's pretty neat. However, I hate to depend on a third-party website, like this or githhub.com's "gist" capability - if you embed from this other website, and the service goes away or changes, we get a hold in our post where the code should be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fortunately, I believe this forum setup is going to be replaced in mere weeks with a more modern system that can do in-line formatting a la gisstackexchange.com. Looking forward to that!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2013 16:26:18 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-05-17T16:26:18Z</dc:date>
    <item>
      <title>Missing Title: 285671</title>
      <link>https://community.esri.com/t5/transportation-questions/missing-title-285671/m-p/749596#M2477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: curtvprice&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please try to post code in code blocks in the forums. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is especially important with Python scripts, as indentation is part of the syntax!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's how:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Method 1:&lt;/STRONG&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(This is the method to use in the forum's "WYSIWYG mode")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Paste your code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Select your code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Click the "#" button in the interface&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;[noparse]&lt;PRE class="plain" name="code"&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;[/noparse]&lt;/SPAN&gt;&lt;SPAN&gt; "tags" will be inserted before and after the selection.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Method 2:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(This method is more suited for old-school types who edit posts in "Source mode".)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Enter: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;[NOPARSE]&lt;PRE class="plain" name="code"&gt; &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;[/NOPARSE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Paste your code in between &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;[NOPARSE]&lt;PRE class="plain" name="code"&gt;[/NOPARSE]&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;[NOPARSE][/NOPARSE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your post (in "source mode") should look something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[indent]&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;[NOPARSE]&lt;PRE class="plain" name="code"&gt;[/NOPARSE] try:[INDENT]import arcpy[/INDENT] except: [INDENT]print "Houston, we've had a problem." raise[/INDENT] [NOPARSE]&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;[/NOPARSE]&lt;/SPAN&gt;&lt;SPAN&gt;[/indent]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, click the &lt;/SPAN&gt;&lt;STRONG&gt;Preview Post&lt;/STRONG&gt;&lt;SPAN&gt; button at the bottom of the page to make sure you did it right. Your code should display in a code block widget:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;try: &amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy except: &amp;nbsp;&amp;nbsp;&amp;nbsp; print "We have a problem" &amp;nbsp;&amp;nbsp;&amp;nbsp; raise&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For more details on ArcGIS forum post formatting using BB codes (including some not included as buttons in the forum's "WYSYWYG mode") with examples, visit the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/misc.php?do=bbcode" rel="nofollow" target="_blank"&gt;BB Code List&lt;/A&gt;&lt;SPAN&gt; page. The ArcGIS forum supports most, but not all, of these BB codes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 16:15:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/missing-title-285671/m-p/749596#M2477</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-01T16:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Please read: How to post Python code</title>
      <link>https://community.esri.com/t5/transportation-questions/missing-title-285671/m-p/749597#M2478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wouldn't be better to use &lt;/SPAN&gt;&lt;A href="http://pastebin.com"&gt;pastebin.com&lt;/A&gt;&lt;SPAN&gt;? It provide colorize syntax. Maybe wysiwyg has a plugin to python code block?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 09:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/missing-title-285671/m-p/749597#M2478</guid>
      <dc:creator>PiotrFrankowski</dc:creator>
      <dc:date>2013-05-17T09:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Please read: How to post Python code</title>
      <link>https://community.esri.com/t5/transportation-questions/missing-title-285671/m-p/749598#M2479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: curtvprice&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Wouldn't be better to use &lt;A href="http://pastebin.com"&gt;pastebin.com&lt;/A&gt;? It provide colorize syntax. Maybe wysiwyg has a plugin to python code block?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's pretty neat. However, I hate to depend on a third-party website, like this or githhub.com's "gist" capability - if you embed from this other website, and the service goes away or changes, we get a hold in our post where the code should be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fortunately, I believe this forum setup is going to be replaced in mere weeks with a more modern system that can do in-line formatting a la gisstackexchange.com. Looking forward to that!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 16:26:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/missing-title-285671/m-p/749598#M2479</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-05-17T16:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Please read: How to post Python code</title>
      <link>https://community.esri.com/t5/transportation-questions/missing-title-285671/m-p/749599#M2480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Relying on third party soluionts is &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;not&lt;/SPAN&gt;&lt;SPAN&gt; a good idea. This is what paste bin looks like from behind our firewall...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;[INDENT]This Page Cannot Be Displayed&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;Based on your corporate access policies, access to this web site ( &lt;A href="http://pastebin.com/"&gt;http://pastebin.com/&lt;/A&gt; ) has been blocked because the web category "Online Storage and Backup" is not allowed.&lt;BR /&gt;Click here to launch an IT Service Request&lt;BR /&gt; If you have questions, please contact the IT Service Desk on the link above and provide the codes shown below.&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;Notification codes: &lt;BR /&gt;(1, WEBCAT, BLOCK-WEBCAT, 0x005dd642, 1398740334.800, AAAEKgAAAAAAAAAAlf8AEP8AAAD/AAAAAAAAAAAAAAE=, &lt;A href="http://pastebin.com/"&gt;http://pastebin.com/&lt;/A&gt;)[/INDENT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 02:02:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/missing-title-285671/m-p/749599#M2480</guid>
      <dc:creator>WernerRunge</dc:creator>
      <dc:date>2014-04-29T02:02:55Z</dc:date>
    </item>
  </channel>
</rss>

