What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » Forum & Website » Emoticon parsing in code

Pages: (3): « First « 1 [ 2 ] 3 » Last »
Emoticon parsing in code
Author: Message:
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: Emoticon parsing in code
umm the codes like catch(e) for jscript and alot of other things... i think for the [code] tags the only thing that should work is color tags and bold tags because they help out to show when you have edited stuff in the code but other than that i think no other tags should work
11-03-2006 07:05 AM
Profile PM Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Emoticon parsing in code
quote:
Originally posted by Baggins
Many times i have seen code and not been able to read it because of emoticons. it also makes it impossible to cut and paste. it should be made to not parse emoticons. should still parse for MyCode though
Making MyBB RC2 not parse smilies would require rewriting quite a bit of code, and I'm not willing to do that. You can use the [noparse] tags around the entire code block, or around each individual smilie.

In MyBB 1.2, smilies and MyCode are never parsed in code blocks (you don't have any options).

quote:
Originally posted by haydn
Question - What code needs emoticons in the first place?
None, that I can think of. Smilies should definitely be disabled in code blocks, but it's kind of tricky to allow MyCode and not allow smilies.
11-03-2006 07:30 AM
Profile PM Web Find Quote Report
Baggins
Full Member
***

Avatar
B000ALFAZO

Posts: 387
Reputation: 13
30 / Male / Flag
Joined: Oct 2006
O.P. RE: Emoticon parsing in code
quote:
Originally posted by haydn

Question - What code needs emoticons in the first place?

Exactly my point!8-)
11-08-2006 12:49 AM
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Emoticon parsing in code
quote:
Originally posted by Baggins
quote:
Originally posted by haydn

Question - What code needs emoticons in the first place?

Exactly my point!8-)
Well, it's not as if someone made a conscious decision to parse smilies inside code tags... :dodgy:
11-08-2006 05:15 AM
Profile PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Emoticon parsing in code
quote:
Originally posted by WDZ
In MyBB 1.2, smilies and MyCode are never parsed in code blocks (you don't have any options).
:( :( :(

I could live with parsed emoticons. Because that happens only occasionally. But I couldn't live with not parsing other MyCode like bold, italics, colors, etc as that quite often enhances and clarifies the actual code.

In fact, more requests have been made to auto-parse code so the syntax is automatically colored for example, than requests for not parsing emoticons automatically...

If one takes a look around the forum and look at all the code bits, you will also see that many times formatting is used inside the code tags to clarify certain bits, etc. Only once or twice an emoticon got slipped thru and was parsed...

in a nutshell: if the code tags in MyBB1.2 indeed don't parse formatting, I don't like 1.2 ...

This post was edited on 11-08-2006 at 09:13 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-08-2006 09:10 AM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Emoticon parsing in code
Yeah, I still want to see that indeed, Syntax Coloring for Jscript, I don't think it would be very hard to do. You don't need big and slow libraries for a lot of languages just JScript then, cause that's mostly used because of the scripts...

[Image: 1-0.png]
             
11-08-2006 10:24 AM
Profile PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Emoticon parsing in code
* WDZ goes to his dev board and takes screenshot :D

[Image: ssb1fxgr-mybb12-dev-screenshot.png]

It's not done yet, and there are some issues that need to be worked out, but it looks promising. I'm using GeSHi BTW, with syntax caching similar to how the phpBB mod works.
11-08-2006 05:15 PM
Profile PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Emoticon parsing in code
Indeed: that looks great! :D
Finally we won't have to color our Plus! scripts ourselves anymore. :)

Go go WDZ!!! (H) :P
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-08-2006 05:49 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Emoticon parsing in code
but... but... but... can we still highlight or emphasize a certain line in the code??? (<= which I actually find more important (and certainly on a support forum) than color syntaxing)

This post was edited on 11-08-2006 at 07:23 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-08-2006 07:22 PM
Profile PM Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Emoticon parsing in code
I thought you might ask that, so I borrowed another feature from the phpBB mod. Important lines can be marked >>>like this<<<.

[Image: fkgwywms-highlighted-lines.png]

Note that all the colors and styles can be tweaked easily by changing a CSS file.
11-08-2006 07:31 PM
Profile PM Web Find Quote Report
Pages: (3): « First « 1 [ 2 ] 3 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On