почему не работает подсветка синтаксиса для diff, patch, xml?
сначала думал что накосячил с css, но проверил без - не работает (да и с тем же башем работает же)
потом подумал - браузер
опять же - ни в хромом ни в лисе не работает
WTF?
примеры:
bash
#!/bin/bash
for user in `grep '/home/' /etc/passwd|grep -v 'nologin'|cut -d: -f1`;
do
if [[ -d `grep $user /etc/passwd|grep -v 'nologin'|cut -d: -f6` ]]; then
export X_USER=`echo $X_USER $user|tr " " ","`;
fi
done
while [[ `pidof X` ]]
do
sleep 2 && ionice -n 7 -t -c 3 -p `pgrep -u root -v X` &>/dev/null || exit 1
sleep 2 && ionice -n 0 -t -c 1 -p `pgrep -u $X_USER && pidof X` &>/dev/null || exit 1
sleep 2 && renice -n -15 -p `pgrep -u $X_USER && pidof X ` &>/dev/null || exit 1
sleep 2 && renice -n 20 -p `pidof kswapd0` &>/dev/null || exit 1
exit 0
done
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
<email>wired@gentoo.org</email>
<name>Alex Alexander</name>
</maintainer>
<maintainer>
<email>hwoarang@gentoo.org</email>
<name>Markos Chandras</name>
</maintainer>
<use>
<flag name='deblob'>Remove binary blobs from kernel sources to provide libre license compliance.</flag>
<flag name='experimental'>Apply patches that are considered experimental. For more information,
check out the ChangeLog or the ebuild that interests you.</flag>
</use>
</pkgmetadata>
diff -Naur megabaks/QtCurve-KDE4-1.8.4//style/qtcurve.cpp work/QtCurve-KDE4-1.8.4//style/qtcurve.cpp
--- megabaks/QtCurve-KDE4-1.8.4//style/qtcurve.cpp 2011-01-19 21:09:03.000000000 +0000
+++ work/QtCurve-KDE4-1.8.4//style/qtcurve.cpp 2011-02-24 15:18:13.000000000 +0000
@@ -3302,8 +3302,8 @@
(!widget || qobject_cast<const QToolButton *>(widget) ? 6 : 0);
case PM_ButtonMargin:
return (DO_EFFECT
- ? (opts.thin&THIN_BUTTONS) ? 4 : 6
- : (opts.thin&THIN_BUTTONS) ? 2 : 4)+MAX_ROUND_BTN_PAD;
+ ? (opts.thin&THIN_BUTTONS) ? 2 : 3
+ : (opts.thin&THIN_BUTTONS) ? 1 : 2)+MAX_ROUND_BTN_PAD;
case PM_TabBarTabShiftVertical:
#if QT_VERSION < 0x040500
if (const QStyleOptionTab *tab = qstyleoption_cast<const QStyleOptionTab *>(option))
diff -Naur megabaks/QtCurve-KDE4-1.8.4//style/qtcurve.cpp work/QtCurve-KDE4-1.8.4//style/qtcurve.cpp
--- megabaks/QtCurve-KDE4-1.8.4//style/qtcurve.cpp 2011-01-19 21:09:03.000000000 +0000
+++ work/QtCurve-KDE4-1.8.4//style/qtcurve.cpp 2011-02-24 15:18:13.000000000 +0000
@@ -3302,8 +3302,8 @@
(!widget || qobject_cast<const QToolButton *>(widget) ? 6 : 0);
case PM_ButtonMargin:
return (DO_EFFECT
- ? (opts.thin&THIN_BUTTONS) ? 4 : 6
- : (opts.thin&THIN_BUTTONS) ? 2 : 4)+MAX_ROUND_BTN_PAD;
+ ? (opts.thin&THIN_BUTTONS) ? 2 : 3
+ : (opts.thin&THIN_BUTTONS) ? 1 : 2)+MAX_ROUND_BTN_PAD;
case PM_TabBarTabShiftVertical:
#if QT_VERSION < 0x040500
if (const QStyleOptionTab *tab = qstyleoption_cast<const QStyleOptionTab *>(option))