diff --git a/Configuration/NodeTypes.yaml b/Configuration/NodeTypes.yaml index 426859a..0a5745b 100755 --- a/Configuration/NodeTypes.yaml +++ b/Configuration/NodeTypes.yaml @@ -32,7 +32,6 @@ editor: 'Neos.Neos/Inspector/Editors/SelectBoxEditor' editorOptions: dataSourceIdentifier: 'geshiLanguages' - showLineNumbers: type: boolean defaultValue: true @@ -55,4 +54,4 @@ reloadIfChanged: true label: i18n inspector: - group: 'codeBlock' \ No newline at end of file + group: 'codeBlock' diff --git a/Resources/Private/Fusion/NodeTypes/CodeBlock.fusion b/Resources/Private/Fusion/NodeTypes/CodeBlock.fusion index a5f56b7..a8b93fa 100755 --- a/Resources/Private/Fusion/NodeTypes/CodeBlock.fusion +++ b/Resources/Private/Fusion/NodeTypes/CodeBlock.fusion @@ -5,13 +5,5 @@ prototype(Vette.CodeBlock:CodeBlock) { showLineNumbers = ${q(node).property('showLineNumbers')} startLinesAt = ${q(node).property('startLinesAt')} highlightLines = ${String.split(q(node).property('highlightLines'), ',')} - - @cache { - mode = 'cached' - entryIdentifier { - node = ${node} - editPreviewMode = ${node.context.currentRenderingMode.name} - } - } } -} \ No newline at end of file +} diff --git a/Resources/Private/Translations/de/NodeTypes/CodeBlock.xlf b/Resources/Private/Translations/de/NodeTypes/CodeBlock.xlf new file mode 100644 index 0000000..35454d6 --- /dev/null +++ b/Resources/Private/Translations/de/NodeTypes/CodeBlock.xlf @@ -0,0 +1,25 @@ + + + + + + Code Block + + + Source Code + + + Sprache + + + Starte Liniennummerierung bei + + + Zeige Zeilennummern + + + Hebe Zeilen hervor (kommasepariert) + + + + diff --git a/Resources/Private/Translations/en/NodeTypes/CodeBlock.xlf b/Resources/Private/Translations/en/NodeTypes/CodeBlock.xlf index abc6eba..8130944 100755 --- a/Resources/Private/Translations/en/NodeTypes/CodeBlock.xlf +++ b/Resources/Private/Translations/en/NodeTypes/CodeBlock.xlf @@ -3,23 +3,23 @@ - Code Block - - - Source Code - - - Language - - - Start line numbers at - - - Show line numbers - - - Highlight lines (Comma separated) - + Code Block + + + Source Code + + + Language + + + Start line numbers at + + + Show line numbers + + + Highlight lines (Comma separated) + - \ No newline at end of file + diff --git a/composer.json b/composer.json index b84bc73..6508f7d 100755 --- a/composer.json +++ b/composer.json @@ -1,31 +1,31 @@ { - "name": "cvette/neos-code-block", - "type": "neos-plugin", - "description": "This package includes a node type to add code blocks with syntax highlighting to your Neos CMS project.", - "license": "GPL-3.0+", - "authors": [ - { - "name": "Christian Vette", - "email": "neos@christianvette.de", - "homepage": "https://www.christianvette.de", - "role": "Developer" + "name": "cvette/neos-code-block", + "type": "neos-plugin", + "description": + "This package includes a node type to add code blocks with syntax highlighting to your Neos CMS project.", + "license": "GPL-3.0+", + "authors": [ + { + "name": "Christian Vette", + "email": "neos@christianvette.de", + "homepage": "https://www.christianvette.de", + "role": "Developer" + } + ], + "require": { + "geshi/geshi": "~1.0", + "neos/neos": "~3.0" + }, + "autoload": { + "psr-4": { + "Vette\\CodeBlock\\": "Classes" + } + }, + "extra": { + "marketplace-account": "neos@christianvette.de", + "installer-name": "Vette.CodeBlock", + "neos": { + "package-key": "Vette.CodeBlock" + } } - ], - "require": { - "geshi/geshi": "~1.0", - "neos/neos": "~3.0", - "neos/nodetypes": "~3.0" - }, - "autoload": { - "psr-4": { - "Vette\\CodeBlock\\": "Classes" - } - }, - "extra": { - "marketplace-account": "neos@christianvette.de", - "installer-name": "Vette.CodeBlock", - "neos": { - "package-key": "Vette.CodeBlock" - } - } -} \ No newline at end of file +}