1
Dylian
SyntaxHighlighting in editor
  • 2009/8/6 11:24

  • Dylian

  • Friend of XOOPS

  • Posts: 237

  • Since: 2007/7/21


I don't know if it's even posible (it should be with javascript i think?)but i think it would be nice if we could have some sort of SyntaxHighlighting in the XOOPS editor.

And maybe the normal highlighting could be replaced with this one http://alexgorbatchev.com/wiki/SyntaxHighlighter?

Instead of:
if (!defined('MEDIAWIKI'))
    exit(
1);

$wgExtensionFunctions[] = "wfSyntaxHighlighterExtension";

$wgExtensionCredits['other'][] = array(
    
'name' => 'SyntaxHighlighter',
    
'author' => array('Alex Gorbatchev'),
    
'version' => '1.0',
    
'url' => 'http://alexgorbatchev.com/projects/syntaxhighlighter',
    
'description' => 'Provides tight integration with SyntaxHighlighter.'
);

// Path to the SyntaxHighlighter scripts
$wgSyntaxHighlighterScriptPath "{$wgScriptPath}/extensions/SyntaxHighlighter/scripts";

// Path to the SyntaxHighlighter styles
$wgSyntaxHighlighterStylesPath "{$wgScriptPath}/extensions/SyntaxHighlighter/styles";


It would then look like:
Resized Image

Greets Dylian
Dylian.eu | Webdevelopment
| http://dylian.eu |

Dylian Melgert | Home
| http://me.dylian.eu |

Arcus College Shedule Notification Service
| http://arcus.dylian.eu |

2
ghia
Re: SyntaxHighlighting in editor
  • 2009/8/6 11:57

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The code block does the same syntax highlighting as you proposed, altough the colour choices are different.

If you mean that during edit this highlighting should also be seen WYSIWYG in the XOOPS editor, then I think this is not an intended or strictly needed function for a general purpose online editor.

3
Dylian
Re: SyntaxHighlighting in editor
  • 2009/8/6 12:44

  • Dylian

  • Friend of XOOPS

  • Posts: 237

  • Since: 2007/7/21


Yes i mean syntax highlighting in the editor, it's easier to edit a piece of code in a message when it's syntax is highlighted.

[edit]
Maybe something like this: http://helene.muze.nl/
[/edit]

I know that it's a silly idea but it could come in very handy.

Greets Dylian.
Dylian.eu | Webdevelopment
| http://dylian.eu |

Dylian Melgert | Home
| http://me.dylian.eu |

Arcus College Shedule Notification Service
| http://arcus.dylian.eu |

Login

Who's Online

261 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 261


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits