dma_k:1466336015 wrote
DokuWiki contains
pre-build code formatters for certain configuration files, like "apache", "proftpd", "xorg_conf".
Mostly languages, with a few common config filetype. Uses
GeSHi
dma_k:1466336015 wrote
I wonder what would be the best match for configs like Samba (/etc/samba/smb.conf, actually "key=value" syntax)
INI is the closest fit as smb.conf uses the same format as Windows INI files, but it
won't validate the config files (use
testparm for that) e.g.:-
<code ini|/etc/samba/smb.conf>
# Global parameters
[global]
interfaces = 127.0.0.0/8 eth0
bind interfaces only = Yes
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No
</code>
[/color]
dma_k:1466336015 wrote
Is there any way to define an alias for the type?
Why not just use INI??