Project

General

Profile

Actions

Bug #11688

closed

Syntax highlighting defaults to text when editing provisioning templates

Added by Dominic Cleal over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Since #11625, the default syntax highlighting for a provisioning template is now "text" rather than "ruby", which it used to be. Most provisioning templates contain either Ruby (ERB) or shell scripts, so either ruby or sh highlighting would be reasonable defaults I think.

Or if we don't want to change the default, perhaps a cookie could be used to remember the user's choice.


Related issues 1 (0 open1 closed)

Related to Foreman - Refactor #11625: Make foreman ace editor reusableClosedWalden Raines08/31/2015Actions
Actions #1

Updated by Dominic Cleal over 8 years ago

Actions #2

Updated by Lukas Zapletal over 8 years ago

Would be nice to have this per template type.

Actions #3

Updated by Dominic Cleal over 8 years ago

Lukas Zapletal wrote:

Would be nice to have this per template type.

Yeah, that makes a lot of sense with say, a cloud-init template which is usually YAML.

Actions #4

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2697 added
  • Pull request deleted ()
Actions #5

Updated by Walden Raines over 8 years ago

  • Assignee set to Walden Raines
Actions #6

Updated by Dominic Cleal over 8 years ago

Lukas Zapletal wrote:

Would be nice to have this per template type.

Filed as #11772.

Actions #7

Updated by Walden Raines over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF