이름공간 관련 문제입니다.

익명 사용자의 이미지

#include
using namespace std;

int main(void)
{
cout << " hello" << endl;
return 0;

}

using 이랑 std 부분에 에러밑줄이 되어있는데 왜 그런지 모르겠습니다. 비주얼 2015버전입니다.

김정균의 이미지

음.. 역으로 질문이 하나 있는데요.
글 본문 적는 textarea 에 뭐라고 쓰여져 있는 것 안 보이나요?
안 보이는 건지 무시하는 건지 좀 궁금합니다.

P.S
지금 처럼 글 작성을 하면, 님이 등록한 코드가 다른 사람에게 의도한 바와 다르게 보여 집니다.

익명 사용자의 이미지

textarea 안내글은 그렇다 치고...

글을 올린 뒤 자기가 의도한 대로 올라갔는지 다시 한 번 확인해 볼 생각도 없었다는 뜻이지요.

아무리 눈에 잘 띄는 곳에 공지를 해 봐야 소용없을 것 같습니다.

그보다는 글 작성 시 텍스트 양식 기본값을 "Plain text"로 설정하는 것은 불가능할까요?

그렇게 하면 indentation과 syntax highlighting은 안되겠지만, 최소한 코드가 읽을 수는 있게 올라갈텐데요.

테스트:
#include <iostream>
using namespace std;

int main(){
cout << "Hello, world!" << endl;
return 0;
}

ps. 가끔 code 블록을 제대로 썼는데도 코드가 깨져서 올라가는 경우가 있었습니다. 아무래도 <와 >를 쓸 일이 많은 C++ 코드에서 그러는 것 같은데, 혹시 시간이 되면 문제가 되는 minimal working example을 찾아서 제보하도록 하겠습니다.

익명 사용자의 이미지

일단 소스 코드 안에 (어떤 형태로든) url 비슷한 게 들어가면 깨지는군요.

<code lang="cpp">
int main(){ cout << "Hello, world!" << endl; return 0; } // 코드 출처: https://kldp.org/node/162896
</code>

int main(){ cout << "Hello, world!" << endl; return 0; } // 코드 출처: <a href="https://kldp.org/node/162896
" rel="nofollow">https://kldp.org/node/162896
</a>
김정균의 이미지

네 이 문제는 알고 있습니다.

이 문제는 spam 의 대부분에 hyper link 가 들어가 있어, hyper link 가 들어가 있는 글을 spam 처리를 하였고, 대신 auto link 기능을 추가해 놓았는데, 이 부분이 서로 충돌을 하는 겁니다. known issue 이고 제가 귀찮아서 나두고 있습니다. 코드에 url 들어가는 경우가 얼마 되지 않아서 ㅠㅠ

xtiinhs의 이미지

그리고 익명 사용자가 글/댓글을 올릴 때 CAPTCHA를 통과하게 하는 것은 이해할 수 있지만, 미리 보기를 시도할 때에는 CAPTCHA를 적용하지 않는 게 가능할까요?

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.