Last modified: 2013-04-09 16:02:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34365, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32365 - Impossible indenting multiline code
Impossible indenting multiline code
Status: RESOLVED DUPLICATE of bug 1581
Product: MediaWiki extensions
Classification: Unclassified
SyntaxHighlight (GeSHi) (Other open bugs)
unspecified
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-11 20:36 UTC by mindrones
Modified: 2013-04-09 16:02 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description mindrones 2011-11-11 20:36:03 UTC
Using:

* foo
* bar
: <source lang="php">
$wgFlaggedRevsTags = array(
	'accuracy' => array( 'levels' => 3, 'quality' => 2, 'pristine' => 4 ),
	'depth'    => array( 'levels' => 3, 'quality' => 2, 'pristine' => 4 ),
	'tone'     => array( 'levels' => 3, 'quality' => 1, 'pristine' => 4 ),
);
* qoo

will just apply the code format to the first line; next lines appear unindented and with no code style.
Comment 1 matanya 2013-01-29 18:32:22 UTC
confirmed. I have done it in some wikis, all get the same broken lines.
Comment 2 Brad Jorsch 2013-04-09 16:02:22 UTC
If you just want it indented, use the style attribute to apply a left margin:

* foo
* bar
<source lang="php" style="margin-left: 1.6em;">
$wgFlaggedRevsTags = array(
    'accuracy' => array( 'levels' => 3, 'quality' => 2, 'pristine' => 4 ),
    'depth'    => array( 'levels' => 3, 'quality' => 2, 'pristine' => 4 ),
    'tone'     => array( 'levels' => 3, 'quality' => 1, 'pristine' => 4 ),
);
</source>
* qoo

Otherwise, it's a duplicate of bug 1581.

*** This bug has been marked as a duplicate of bug 1581 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links