Actions
Feature #36
closedcoloration wiki bash
Start date:
02/23/2017
Due date:
03/02/2017
% Done:
100%
Estimated time:
Description
Serait-il possible d'ajouter une coloration syntaxique pour insérer du code bash dans les pages wiki de la forge ?
Par exemple :
http://www.redmine.org/boards/3/topics/29926
Merci d'avance,
Claire.
Updated by Arnaud MARTEL over 7 years ago
- Status changed from New to Closed
- Assignee set to Arnaud MARTEL
- Author changed from Claire TOFFANO-NIOCHE to Arnaud MARTEL
- % Done changed from 0 to 100
C'est fait
<pre><code class="bash"> #!/bin/bash read -p "mois : "TMP_MONTH if [ "$TMP_MONTH" -le 0 ]; then THRESHOLD_YEAR=`echo $(( $CURRENT_YEAR - 1 ))` THRESHOLD_MONTH=`echo $(( 12 + TMP_MONTH ))` else THRESHOLD_YEAR=$CURRENT_YEAR THRESHOLD_MONTH=$TMP_MONTH fi return 0; </code>
donne :
#!/bin/bash
read -p "mois : "TMP_MONTH
if [ "$TMP_MONTH" -le 0 ]; then
THRESHOLD_YEAR=`echo $(( $CURRENT_YEAR - 1 ))`
THRESHOLD_MONTH=`echo $(( 12 + TMP_MONTH ))`
else
THRESHOLD_YEAR=$CURRENT_YEAR
THRESHOLD_MONTH=$TMP_MONTH
fi
return 0;
Actions