Closed (fixed)
Project:
Syntax Highlighter
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 May 2012 at 14:18 UTC
Updated:
19 Apr 2013 at 00:16 UTC
Jump to comment: Most recent file
Comments
Comment #1
mattyoung commentedThis module can highlight anything on the page. You just have to mark it up properly. See the Syntax Highlighter Javascript site for details. Basically you just need to do this to you code:
Comment #2
ANDiTKO commentedI also want to use syntax highlighting on my Node and Block edit forms. It seems pretty strange that Drupal dose not have any module that provides nice code hilighting for Administration pages.
I don't want to copy/paste the code into my Desktop editor (Aptana Studio or Dreamweaver) then paste it back to drupal. And i don't want WYSIWYG module. I want to code with syntax highlighting.
So the question is how can we make the "Syntax highlighter" module work with Node and Block administration? Currently drupal create a "textarea" tag to write text in nodes and blocks. So do we make the "Syntax highlighter" hilight the textarea tag or we change the drupal output. But as far as i know you cant write text insde a code tag. The code tag is to show "ready" pre-formated code. Not to write in it.
Any ideas?
Comment #3
mattyoung commented>work with Node and Block administration?
Can you explain what do you mean by this?
Are you looking for ways to highlight code within a textarea edit form element? If this is the case, then I don't think this can be done with this module. It can only highlight code with the properly marked-up <pre> elements on the page.
Comment #4
ANDiTKO commentedI mean that it would be very helpful if we can have syntax highlighting inside administration text areas.
So we can write code in our node body field Like so:
Comment #5
mattyoung commentedWhat you are asking is not possible with this module.
You can take a look at http://drupal.org/project/wysiwyg_codemirror
I believe it does what you want
Comment #6
ANDiTKO commentedYes it dose but its for Drupal 6. Ive used http://drupal.org/project/wysiwyg_codemagic on some other sites. But it depends on WYSIWYG +TinyMCE and i dont want no WYSIWYG. And you must click on the HTML button to see the highlighting.
Cant we make "Syntax highlighter" to have an option to work with "text area tag" within administration pages?
- Thanks
ANDiTKO
Comment #7
fizk commentedANDiTKO,
I'm the maintainer of wysiwyg_codemagic (and now this module as well) - I highly recommend following #274431: Add editor: CodeMirror because that's exactly what they are trying to do.