blob: dec4b695eba79f3a95d2c3e97ef1a395fe782a40 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
echo -n "Please enter the name of the C file you wish to highlight: "
read fileName
echo -ne "Please enter:\n\t0 for highlighting\n\t1 highlighting and prettification\n\t2 for highlighting and prettification and control structure collapse: "
read number
if ! [[ $fileName == *.c\n ]]; then
base=`pwd`"/c2html.pl"
PL=swipl
exec $PL -q -f "$base" "$fileName" "$number"
else
echo "Not a correct C filename!"
fi
|