Python Forum
People Not Using Code Tags
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
People Not Using Code Tags
#11
(Dec-08-2017, 12:59 AM)metulburr Wrote:
Quote:is there a way to make it so that the in-browser editor automatically adds codes when, say, someone pastes three or more lines?
I think this would require a lot of code that we non PHP devs seem not to be able to implement. Although that would surely fix the problem. One method i think i could implement, would be to disallow the post if the condition is met. Condition being X amount of python keywords? Or indented space...but then some people dont even make sure their code is indented. Then it would show a message saying that code was detected and code tags (ie [ python ]) were not used with a link to BBcode in a new tab to instruct how to use them if they dont know how.

And yes it closely resembles the other case...but i know how to deny a post, and not how to auto implement code tags around suspected python code. Maybe @[stranac] might know more as he seems to be much better at PHP.

Pasting code is handled entirely by the editor itself, using javascript.
You're supposed to be able to easily extend the editor according to the docs, but I experimented with it when I was writing the code tags plugin, and every change I tried to make resulted in the editor completely ignoring all MyBB specific code.
I tried asking for help in a few places, but it didn't really get me anywhere...
Reply


Messages In This Thread
People Not Using Code Tags - by micseydel - Dec-05-2017, 11:54 PM
RE: People Not Using Code Tags - by Larz60+ - Dec-06-2017, 12:52 AM
RE: People Not Using Code Tags - by snippsat - Dec-06-2017, 06:10 PM
RE: People Not Using Code Tags - by Mekire - Dec-07-2017, 03:57 AM
RE: People Not Using Code Tags - by Larz60+ - Dec-07-2017, 04:13 AM
RE: People Not Using Code Tags - by snippsat - Dec-07-2017, 09:16 PM
RE: People Not Using Code Tags - by Larz60+ - Dec-07-2017, 09:51 PM
RE: People Not Using Code Tags - by snippsat - Dec-07-2017, 10:13 PM
RE: People Not Using Code Tags - by metulburr - Dec-08-2017, 12:59 AM
RE: People Not Using Code Tags - by stranac - Dec-08-2017, 10:25 AM
RE: People Not Using Code Tags - by buran - Dec-08-2017, 04:44 AM
RE: People Not Using Code Tags - by sparkz_alot - Dec-08-2017, 03:09 PM
RE: People Not Using Code Tags - by micseydel - Dec-08-2017, 05:45 PM
RE: People Not Using Code Tags - by metulburr - Dec-09-2017, 12:01 AM
RE: People Not Using Code Tags - by micseydel - Dec-09-2017, 12:32 AM
RE: People Not Using Code Tags - by metulburr - Dec-09-2017, 12:39 AM
RE: People Not Using Code Tags - by micseydel - Dec-09-2017, 06:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Just a trial. For learning code tags sylas 3 3,773 Sep-25-2017, 11:41 AM
Last Post: metulburr
  Please use code tags Larz60+ 28 16,083 Apr-06-2017, 09:47 PM
Last Post: metulburr
  Do not know how to add "Code Tags" or "Error Tags" to my submissions mattkrebs 2 3,793 Mar-21-2017, 04:15 PM
Last Post: metulburr
  Created a plugin for our code tags stranac 18 13,951 Dec-13-2016, 12:16 PM
Last Post: Kebap

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020