MyBB Community Forums

Full Version: DVZ Code Tags 1.0.3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
can you force your plugin to be left to right ?
Version 1.0.2:
  • Added blocks-on-page & block code length limit settings to the PrismJS formatter to improve performance
  • Added support for [php] MyCode tags
  • PrismJS updated to 1.16.0

https://community.mybb.com/mods.php?acti...7&bid=3928
(2019-05-05, 06:23 PM)Devilshakerz Wrote: [ -> ]Version 1.0.2:
  • Added blocks-on-page & block code length limit settings to the PrismJS formatter to improve performance
  • Added support for [php] MyCode tags
  • PrismJS updated to 1.16.0

https://community.mybb.com/mods.php?acti...7&bid=3928

Awesome plugin, thanks for the update!
Hi @Devilshakerz  no big deal but again i had to change those 2 lines of code inside the ...hooks_frontend.php on line 87 and 88 to make it work properly on my site.  Big Grin
https://github.com/dvz/mybb-dvzCodeTags/...hp#L87-L88

       \dvzCodeTags\getCodeFormatterInstance('block', true),
        \dvzCodeTags\getCodeFormatterInstance('inline', true),
Is it possible to auto-detect language @Dvz?
@codedude I am not DVZ, but that sounds hard to implement, possibly buggy, and totally useless. Not worth the time.
Not difficult at all, every browser sends an info about version and lang
(2019-06-09, 05:27 AM)Eldenroot Wrote: [ -> ]Not difficult at all, every browser sends an info about version and lang
Then this would be a great addition as people don't like using
[ code=language ]. They are lazy and want [code ][/code ]
instead.
(2019-06-09, 05:27 AM)Eldenroot Wrote: [ -> ]Not difficult at all, every browser sends an info about version and lang

He means auto-detection of the programming language within the code blocks, not auto-detection of the user's actual language.
MY mistake, srry Smile
Pages: 1 2 3 4