Drupal
Configure CKEditor with syntax highlighter in drupal
I ran an website with programming tutorials and related resources with drupal. I need to add lots of reference codes in my posts. So I use javascript SyntaxHighlighter library from http://alexgorbatchev.com/wiki/SyntaxHighlighter.
In my drupal website I have fantastic wysiwyg editor module called ckeditor with lots of reach features. But when I need to add any code in my post. I manually need to switch to source mood and then edit the html to enter the syntaxHighlighter syntax.
1 CommentValidating username in drupal
Have you ever noticed that drupal system allows any sort of username with and without spaces. Like “Hello World!”, “N/A”, “#MY SPECIAL && USER % NAME”
.I think you would never like to see these sort of usernames to be allowed in your website. But unfortunately drupal don’t provide any administration to validate username. The only way is to add an access rule from User Management > Access Rule and block each invalid characters. Which is really ineffecient and time consuming.
So what the solution is ?? frown
No Comments
