2019-04-30, 07:41 PM
2019-05-05, 06:23 PM
Version 1.0.2:
https://community.mybb.com/mods.php?acti...7&bid=3928
- 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:36 PM
(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!
2019-05-06, 07:26 PM
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.
https://github.com/dvz/mybb-dvzCodeTags/...hp#L87-L88
https://github.com/dvz/mybb-dvzCodeTags/...hp#L87-L88
\dvzCodeTags\getCodeFormatterInstance('block', true),
\dvzCodeTags\getCodeFormatterInstance('inline', true),
2019-06-08, 06:28 PM
Is it possible to auto-detect language @Dvz?
2019-06-08, 08:21 PM
@codedude I am not DVZ, but that sounds hard to implement, possibly buggy, and totally useless. Not worth the time.
2019-06-09, 05:27 AM
Not difficult at all, every browser sends an info about version and lang
2019-06-10, 02:59 PM
(2019-06-09, 05:27 AM)Eldenroot Wrote: [ -> ]Not difficult at all, every browser sends an info about version and langThen this would be a great addition as people don't like using
[ code=language ]. They are lazy and want [code ][/code ]
instead.
2019-06-10, 03:05 PM
(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.
2019-06-10, 05:25 PM
MY mistake, srry