<p>In python, there are some special variables and filenames that are surrounded by double-underscores.  For example, there is the</p>

<pre><code>__file__ 
</code></pre>

<p>variable.  I am only able to get them to show up correctly inside of a code block.  What do I need to enter to get double underscores in regular text without having them interpreted as an emphasis?</p>

[{'answer_id': 53052, 'author': 'Blorgbeard', 'author_id': 369, 'author_profile': 'https://Stackoverflow.com/users/369', 'pm_score': 6, 'selected': True, 'text': '<p>__file__</p>\n\n<p>Put a backslash before the first underscore.</p>\n\n<p>Like this:</p>\n\n<pre><code>\\__file__\n</code></pre>\n'}, {'answer_id': 53054, 'author': 'Chris Upchurch', 'author_id': 2600, 'author_profile': 'https://Stackoverflow.com/users/2600', 'pm_score': 3, 'selected': False, 'text': '<p>You can also put a backslash before the final underscore</p>\n\n<pre><code>__file_\\_\n</code></pre>\n\n<p>gives you</p>\n\n<p>__file__</p>\n'}, {'answer_id': 54594, 'author': 'jfs', 'author_id': 4279, 'author_profile': 'https://Stackoverflow.com/users/4279', 'pm_score': 2, 'selected': False, 'text': '<p>You can use <code>&amp;#95;</code> in place of left underscores. Example: \n&#95;&#95;file__</p>\n'}, {'answer_id': 7545179, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p><code>`*</code> ` The same holds true for the star-character or any markdown syntax. Bbackticking works well.</p>\n'}, {'answer_id': 54740109, 'author': 'WAN QIAN', 'author_id': 9229077, 'author_profile': 'https://Stackoverflow.com/users/9229077', 'pm_score': 0, 'selected': False, 'text': '<p><code>_\\_file__</code>\nenter this will help you.</p>\n'}, {'answer_id': 55482838, 'author': 'Fouzi TAKELAIT', 'author_id': 7916257, 'author_profile': 'https://Stackoverflow.com/users/7916257', 'pm_score': 3, 'selected': False, 'text': '<p>Just you need to write it like this in markdown</p>\n\n<pre><code>\\_\\_file\\_\\_\n</code></pre>\n'}, {'answer_id': 65333812, 'author': 'NachtgeistW', 'author_id': 11090451, 'author_profile': 'https://Stackoverflow.com/users/11090451', 'pm_score': 3, 'selected': False, 'text': '<p>Put a backslash before the first and the second underscore, like:</p>\n<pre><code>\\_\\_main.py__\n</code></pre>\n<p>It will show like this:</p>\n<pre><code>__main.py__\n</code></pre>\n<p>Only one backslash is not enough, because it will make your text shown in Italic.</p>\n<p>By the way, considering they are variables and filenames, I suggest enclosing it in backticks(`):</p>\n<pre><code>`__main.py__`\n</code></pre>\n<p>It will show like <code>__main.py__</code>.</p>\n'}]
['https://Stackoverflow.com/questions/53046', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4883/']