Added textmarks for warnings and errors