Ticket #176 (new enhancement)

Opened 4 years ago

Last modified 4 years ago

Please provide a way to add formatters, that don't get placed in '<div class = "code">'

Reported by: NilsLindenberg Owned by: unassigned
Priority: normal Milestone: 1.4
Component: formatters Version: 1.1.6.1
Severity: minor Keywords: formatter div code
Cc:

Description (last modified by NilsLindenberg) (diff)

copied from the SuggestionBox

I've replaced the part

// use internal Wikka hilighter
$output = '<div class="code">'."\n";
$output .= $wakka->Format($code, $language);
$output .= "</div>\n";

with

// use internal Wikka hilighter
$wakka->formatter_nocode = false;
$output = $wakka->Format($code, $language);
if (!$wakka->formatter_nocode)
	$output = '<div class="code">'."\n" . $output . "</div>\n";

in the file formatters/wakka.php to get this. This way I'm able to set $this->formatter_nocode=true in my formatter.

Change History

Changed 4 years ago by NilsLindenberg

  • description modified (diff)

Changed 4 years ago by BrianKoontz

  • milestone set to 1.1.9

And the purpose of this would be to...? If the goal is to disable some class, wouldn't it make sense to do so in the CSS? (Or simply define a "noformat" CSS for such a purpose?)

Bumped to milestone 1.1.9 for further discussion.

Note: See TracTickets for help on using tickets.