Sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
test | test | ||
1234 | 1234 | ||
<syntaxhighlight lang="php"> | |||
<?php | |||
$v = "string"; // sample initialization | |||
?> | |||
html text | |||
<? | |||
echo $v; // end of php code | |||
?> | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="csharp"> | |||
private void AndroidLoggerDequeuer() | |||
{ | |||
Common.LogMessage l; | |||
while(logQueue.TryDequeue(out l)) | |||
{ | |||
switch(l.level) { | |||
case Common.LogLevel.DEBUG: | |||
Android.Util.Log.Debug(TAG, l.message); | |||
break; | |||
case Common.LogLevel.ERROR: | |||
Android.Util.Log.Error(TAG, l.message); | |||
break; | |||
case Common.LogLevel.WARN: | |||
Android.Util.Log.Warn(TAG, l.message); | |||
break; | |||
case Common.LogLevel.INFO: | |||
Android.Util.Log.Info(TAG, l.message); | |||
break; | |||
default: | |||
Android.Util.Log.Wtf(TAG, l.message); | |||
break; | |||
} | |||
} | |||
} | |||
</syntaxhighlight> | |||
Latest revision as of 01:20, 25 February 2015
test
1234
<syntaxhighlight lang="php">
<?php
$v = "string"; // sample initialization
?> html text <?
echo $v; // end of php code
?> </syntaxhighlight>
<syntaxhighlight lang="csharp">
private void AndroidLoggerDequeuer()
{
Common.LogMessage l;
while(logQueue.TryDequeue(out l))
{
switch(l.level) {
case Common.LogLevel.DEBUG:
Android.Util.Log.Debug(TAG, l.message);
break;
case Common.LogLevel.ERROR:
Android.Util.Log.Error(TAG, l.message);
break;
case Common.LogLevel.WARN:
Android.Util.Log.Warn(TAG, l.message);
break;
case Common.LogLevel.INFO:
Android.Util.Log.Info(TAG, l.message);
break;
default:
Android.Util.Log.Wtf(TAG, l.message);
break;
}
}
}
</syntaxhighlight>