Project

General

Profile

Actions

Feature #25225

closed

With the blockmode in Template Analyzer the TS-indent is gone

Added by Hauke Haller about 13 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-03-02
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

In the Termplate Analyzer in 4.5 the blockmode-option has been removed. See #23711.

With this option the automatic TS-indent was removed also.

Something like:

test {
11 {
wahr = 42
}
nichtwahr = 23
}

won't be transformed to:

test {
11 {
wahr = 42
}
nichtwahr = 23
}

the automatic indent was very useful to format TS.

(Copy from "template analyzer" (with blockmode) and paste in "info/modify")

(issue imported from #M17826)


Files


Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Feature #33670: Missing block mode from syntaxhighlighted code since 4.5Closed2012-02-03

Actions
Follows TYPO3 Core - Bug #23711: Remove block mode from syntaxhighlighted codeClosedSteffen Kamper2010-10-12

Actions
Actions #1

Updated by Hauke Haller about 13 years ago

The missing "Block mode", which simply indents the TypoScript code, is described here
http://typo3.org/documentation/document-library/core-documentation/doc_core_ts/4.2.0/view/1/3/#id4144286
as feature of the extension Extension Development Evaluator where its still working. But it was integrated in the core in <4.5.

Actions #2

Updated by Ernesto Baschny almost 13 years ago

Indeed I just figured out that this was a feature which could have been useful. I would propose that we need to bring it back somehow, but undecided still how.

It cannot be called "block mode": I doubt anyone guesses this idents the TypoScript code. The usability team and also the core team guys that removed that also just saw the "ugly gray backgrounds" without noticing the real benefit of it. You just understand it after reading the documentation (not a good signal...).

I also figured out that the indention level was represented in the background gray level. It went darker the bigger the indention level.

So I propose to re-add this feature simply in the "syntax highlighting" mode, so if this is ticked, the code automatically gets correct indention. You will be then able to copy&paste it again.

I tried to get some "better styling" for the gray backgrounds, but was unable to:

So I guess the most easy solution would be simply to get rid of the gray backgrounds but still do the correct indention.

Actions #3

Updated by Thorsten Kahler about 12 years ago

+1 from my side, but I'm not 100% sure about it: Can somebody imagine any case where implicit indentation correction in syntax highlighting mode might cause a drawback?

Actions #4

Updated by Mathias Schreiber over 9 years ago

  • Priority changed from Should have to Could have
  • Target version set to 7.4 (Backend)
Actions #5

Updated by Susanne Moog over 8 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #6

Updated by Benni Mack over 8 years ago

  • Target version deleted (7.5)
Actions #7

Updated by Georg Ringer over 8 years ago

  • Status changed from New to Resolved

the TS looks nice in 7 LTS. therefore I am closing this issue. feel free to open if still valid for you in latest version

Actions #8

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF