dreadwarrior/vantomas

Remove dependency: ext:beautyofcode

Closed this issue · 0 comments

To further decouple features of this project from TYPO3.CMS third party extensions, the removal of ext:beautyofcode should be tackled.

The flexform settings can be simplified to YAML front matter, see https://github.com/mnapoli/FrontYAML

Migration should be performed like the following:

  1. A content type needs to be registered.
  2. All ext:beautyofcode content elements needs to be migrated to the new CE.
  3. A frontend syntax highlighting library must be installed with node (current favorite: http://alexgorbatchev.com/SyntaxHighlighter)
  4. Migration of content and settings:
  • cLabel (flexform setting): tt_content.header
    - NOTE: maybe existing headers should be moved to the new tt_content "Description" field for historical reasons; migration report
    - NOTE 2: existing headers should be not touched. tt_content.subheader is unused in current ext:boc, label could be moved into this; CE have to support the field
  • cLang (flexform setting): front matter, configuration key "brush" (string, e.g. "php")
  • cCode (flexform setting): tt_content.bodytext
  • cHighlight (flexform setting): front matter, configuration key: "highlight" (string, "1,2,5-8") - *
  • cCollapse (flexform setting): front matter, configuration key: "collapse" (bool) - *
  • cGutter (flexform setting): front matter, configuration key: "gutter" (bool) - *

* - check if this settings are supported by the JavaScript syntax highlighting tool since Alex Gorbatchev's SyntaxHighlighter lib is used, these settings are available