digitalpoint
Well-known member
Use the HTML BBCode...
Use the HTML BBCode...
<dl class="ctrlUnit">
<dt>{xen:phrase language}:</dt>
<dd><select name="redactor_code_type" id="redactor_code_type" class="textCtrl">
<option value="code">{xen:phrase general_code}</option>
<option value="php">PHP</option>
<option value="html">HTML</option>
<option value="python">Python</option>
</select></dd>
</dl>
. How can I get to come out as [code=python]?
Because that function isn't for it.
Already looked into doing it a long time ago. Would require changes to the XenForo JavaScript files.
Not realistic to expect people to edit their JavaScript files by hand every time they upgrade XF.
No, there is not.Thanks for creating this plugin. Is it possible to modify it to register new tags instead of extending the code tag? If so, how?
I love this addon, thanks so much!
I am seeing an issue with the formatting of the code when using type "progress" on my forums. You can see an example of it here:
http://www.progresstalk.com/threads/using-in-built-functions-in-for-each.122413/
Does anyone know why this is happening, or can point me in the right direction to be able to fix this? Thanks so much in advance!
- Using GeSHi's get_language_name() method to get the language as a string meant for humans (was based on filename before).
- Overwriting BbCodeWysiwygEditor.insertCode JavaScript method so we can add languages to the BBCode CODE dialog (we add JavaScript and CSS languages by default to the editor_dialog_code template).
We use essential cookies to make this site work, and optional cookies to enhance your experience.