모바일 오유 바로가기
http://m.todayhumor.co.kr
분류 게시판
베스트
  • 베스트오브베스트
  • 베스트
  • 오늘의베스트
  • 유머
  • 유머자료
  • 유머글
  • 이야기
  • 자유
  • 고민
  • 연애
  • 결혼생활
  • 좋은글
  • 자랑
  • 공포
  • 멘붕
  • 사이다
  • 군대
  • 밀리터리
  • 미스터리
  • 술한잔
  • 오늘있잖아요
  • 투표인증
  • 새해
  • 이슈
  • 시사
  • 시사아카이브
  • 사회면
  • 사건사고
  • 생활
  • 패션
  • 패션착샷
  • 아동패션착샷
  • 뷰티
  • 인테리어
  • DIY
  • 요리
  • 커피&차
  • 육아
  • 법률
  • 동물
  • 지식
  • 취업정보
  • 식물
  • 다이어트
  • 의료
  • 영어
  • 맛집
  • 추천사이트
  • 해외직구
  • 취미
  • 사진
  • 사진강좌
  • 카메라
  • 만화
  • 애니메이션
  • 포니
  • 자전거
  • 자동차
  • 여행
  • 바이크
  • 민물낚시
  • 바다낚시
  • 장난감
  • 그림판
  • 학술
  • 경제
  • 역사
  • 예술
  • 과학
  • 철학
  • 심리학
  • 방송연예
  • 연예
  • 음악
  • 음악찾기
  • 악기
  • 음향기기
  • 영화
  • 다큐멘터리
  • 국내드라마
  • 해외드라마
  • 예능
  • 팟케스트
  • 방송프로그램
  • 무한도전
  • 더지니어스
  • 개그콘서트
  • 런닝맨
  • 나가수
  • 디지털
  • 컴퓨터
  • 프로그래머
  • IT
  • 안티바이러스
  • 애플
  • 안드로이드
  • 스마트폰
  • 윈도우폰
  • 심비안
  • 스포츠
  • 스포츠
  • 축구
  • 야구
  • 농구
  • 바둑
  • 야구팀
  • 삼성
  • 두산
  • NC
  • 넥센
  • 한화
  • SK
  • 기아
  • 롯데
  • LG
  • KT
  • 메이저리그
  • 일본프로야구리그
  • 게임1
  • 플래시게임
  • 게임토론방
  • 엑스박스
  • 플레이스테이션
  • 닌텐도
  • 모바일게임
  • 게임2
  • 던전앤파이터
  • 마비노기
  • 마비노기영웅전
  • 하스스톤
  • 히어로즈오브더스톰
  • gta5
  • 디아블로
  • 디아블로2
  • 피파온라인2
  • 피파온라인3
  • 워크래프트
  • 월드오브워크래프트
  • 밀리언아서
  • 월드오브탱크
  • 블레이드앤소울
  • 검은사막
  • 스타크래프트
  • 스타크래프트2
  • 베틀필드3
  • 마인크래프트
  • 데이즈
  • 문명
  • 서든어택
  • 테라
  • 아이온
  • 심시티5
  • 프리스타일풋볼
  • 스페셜포스
  • 사이퍼즈
  • 도타2
  • 메이플스토리1
  • 메이플스토리2
  • 오버워치
  • 오버워치그룹모집
  • 포켓몬고
  • 파이널판타지14
  • 배틀그라운드
  • 기타
  • 종교
  • 단어장
  • 자료창고
  • 운영
  • 공지사항
  • 오유운영
  • 게시판신청
  • 보류
  • 임시게시판
  • 메르스
  • 세월호
  • 원전사고
  • 2016리오올림픽
  • 2018평창올림픽
  • 코로나19
  • 2020도쿄올림픽
  • 게시판찾기
  • 게시물ID : humorbest_821764
    작성자 : 게임할줄몰라
    추천 : 31
    조회수 : 2990
    IP : 180.70.***.127
    댓글 : 12개
    베스트 등록시간 : 2014/01/17 19:28:23
    원글작성시간 : 2014/01/16 16:29:15
    http://todayhumor.com/?humorbest_821764 모바일
    오유에 소스코드올릴 때
    <div><br /></div> <div><br /></div> <div>소스에 대해 질문하고 싶지만 컴파일러처럼 하이라이트 표시를 안해주니 </div> <div>보는 사람이 분석하기가 힘들잖아요</div> <div><br /></div> <div>그래서 소스를 하이라이트 해줘서 html로 변환해주는 사이트가 상~당히 많은데 </div> <div>대부분 오유 편집기에서는 이상동작을 하더라고요? </div> <div><br /></div> <div><span style="font-size: 9pt; line-height: 1.5">그래서 요기 사이트 가서 변환을 해보니 잘 되긴 합니다.</span></div> <div><span style="font-size: 9pt; line-height: 1.5"><a target="_blank" href="http://puzzleware.net/CodeHtmler/default.aspx" target="_blank">http://puzzleware.net/CodeHtmler/default.aspx</a></span></div> <div><br /></div> <div>변환하실 때 <span style="font-family: Gulim; line-height: normal"><font size="2">Whitespace Options가 </font></span></div> <div><span style="font-family: Gulim; line-height: normal"><font size="2">"Use </font><pre><font size="2"> Tag"로 되어있을텐데 "Converter Whitespace"로 선택해주세요.</font></pre></span></div> <div><span style="font-family: Gulim; line-height: normal"><font size="2"><br /></font></span></div> <div><span style="font-family: Gulim; line-height: normal"><font size="2">그리고 변환결과가 두가지가 나오는데 </font></span></div> <div><span style="font-family: Gulim; line-height: normal"><font size="2">위에는 하이라이트가 적용된 소스코드고</font></span></div> <div><font face="Gulim" size="2"><span style="line-height: normal">밑에는 html코드인데</span></font></div> <div><font face="Gulim" size="2"><span style="line-height: normal"><br /></span></font></div> <div><font face="Gulim" size="2"><span style="line-height: normal">위에꺼 그냥 복사해서 오유 편집기에 붙여넣기 하시면 됩니다.</span></font></div> <div><font face="Gulim" size="2"><span style="line-height: normal"><br /></span></font></div> <div><font face="Gulim" size="2"><span style="line-height: normal">그럼 다음과 같이 하이라이트 처리가 된 소스를 올릴 수 있지요.</span></font></div> <div><br /></div> <div><br /></div> <div><br /></div> <div><font size="2"><span style="font-family: 'Courier New'; line-height: normal; color: green">// MAIN</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal; color: blue">void</span><span style="font-family: 'Courier New'; line-height: normal"> main(</span><span style="font-family: 'Courier New'; line-height: normal; color: blue">void</span><span style="font-family: 'Courier New'; line-height: normal">) </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">{     </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// Application에서 쓰이는 Digital Input/Output용 GPIO 포트 초기화</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    app_gpio_init(); </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">     </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// SPI 초기화</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    DF_Init(); </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">     </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// 환경설정 읽기</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    ReadEnvironment(); </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">     </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// Read dip-sw </span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    can_bps_index = get_can_bps_info(); </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">     </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// Capture 핀 사용하지 않을 경우 입력으로 설정함</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    PORTB_PCR0 = PORT_PCR_MUX(</span><span style="font-family: 'Courier New'; line-height: normal; color: maroon">1</span><span style="font-family: 'Courier New'; line-height: normal">); </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    PORTB_PCR18 = PORT_PCR_MUX(</span><span style="font-family: 'Courier New'; line-height: normal; color: maroon">1</span><span style="font-family: 'Courier New'; line-height: normal">); </span><br style="font-family: 'Courier New'; line-height: normal" /><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// FlexCAN 주변장치 초기화</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    can0_init(can_bps_index); </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    can1_init(can_bps_index); </span><br style="font-family: 'Courier New'; line-height: normal" /><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// 시리얼 통신 초기화</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    Serial_init(); </span><br style="font-family: 'Courier New'; line-height: normal" /><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// ARM Core System Tick Timer를 10ms 주기로 초기화</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    enable_system_tick_timer(</span><span style="font-family: 'Courier New'; line-height: normal; color: maroon">10</span><span style="font-family: 'Courier New'; line-height: normal">); </span><br style="font-family: 'Courier New'; line-height: normal" /><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// 32비트 타이머 PIT 4개 중 2채널만을 사용함</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// PIT 0 채널 10ms 주기로 초기화</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// CAN 0/1 TRX LED 제어용으로 사용함</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    pit_init(</span><span style="font-family: 'Courier New'; line-height: normal; color: maroon">0</span><span style="font-family: 'Courier New'; line-height: normal">, </span><span style="font-family: 'Courier New'; line-height: normal; color: maroon">10000</span><span style="font-family: 'Courier New'; line-height: normal">);     </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    pit_start(</span><span style="font-family: 'Courier New'; line-height: normal; color: maroon">0</span><span style="font-family: 'Courier New'; line-height: normal">); </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// Start PIT 0 채널 timer</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// Enable global interrupt flag for all peripheral interrupts</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    EnableInterrupts; </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">         </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// user bps copy</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: blue">int</span><span style="font-family: 'Courier New'; line-height: normal"> i, offset = CAN_BPS_USER1; </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: blue">for</span><span style="font-family: 'Courier New'; line-height: normal">(i = </span><span style="font-family: 'Courier New'; line-height: normal; color: maroon">0</span><span style="font-family: 'Courier New'; line-height: normal">; i < </span><span style="font-family: 'Courier New'; line-height: normal; color: maroon">6</span><span style="font-family: 'Courier New'; line-height: normal">; i++) </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    { </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">        CAN_BPS_CONFIG_TABLE[i + offset][</span><span style="font-family: 'Courier New'; line-height: normal; color: maroon">0</span><span style="font-family: 'Courier New'; line-height: normal">] = device_env.user_bps[i].PRESDIV;</span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">        CAN_BPS_CONFIG_TABLE[i + offset][</span><span style="font-family: 'Courier New'; line-height: normal; color: maroon">1</span><span style="font-family: 'Courier New'; line-height: normal">] = device_env.user_bps[i].PROPSEG;</span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">        CAN_BPS_CONFIG_TABLE[i + offset][</span><span style="font-family: 'Courier New'; line-height: normal; color: maroon">2</span><span style="font-family: 'Courier New'; line-height: normal">] = device_env.user_bps[i].PSEG1; </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">        CAN_BPS_CONFIG_TABLE[i + offset][</span><span style="font-family: 'Courier New'; line-height: normal; color: maroon">3</span><span style="font-family: 'Courier New'; line-height: normal">] = device_env.user_bps[i].PSEG2; </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    } </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">     </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// Main LOOP</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    </span><span style="font-family: 'Courier New'; line-height: normal; color: blue">while</span><span style="font-family: 'Courier New'; line-height: normal">(</span><span style="font-family: 'Courier New'; line-height: normal; color: maroon">1</span><span style="font-family: 'Courier New'; line-height: normal">) </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    { </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">        </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// CAN</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">        CAN_Process(); </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">         </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">        </span><span style="font-family: 'Courier New'; line-height: normal; color: green">// SERIAL</span><span style="font-family: 'Courier New'; line-height: normal"> </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">        Serial_Process(); </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">    } </span><br style="font-family: 'Courier New'; line-height: normal" /><span style="font-family: 'Courier New'; line-height: normal">} </span></font></div> <div><span style="font-family: 'Courier New'; font-size: medium; line-height: normal"><br /></span></div> <div><span style="font-family: 'Courier New'; font-size: medium; line-height: normal"><br /></span></div> <div><font face="Courier New" size="2"><span style="line-height: normal">다들 아시는건데 나만 몰랐을수도...</span></font></div>
    게임할줄몰라의 꼬릿말입니다
    <font size="6"><b>부 정 선 거</b></font>

    이 게시물을 추천한 분들의 목록입니다.
    [1] 2014/01/16 16:43:10  203.246.***.74  nullpointer  456930
    [2] 2014/01/16 16:43:46  124.197.***.248  글냥이  54510
    [3] 2014/01/16 17:52:13  61.255.***.213  Cameo  251208
    [4] 2014/01/16 18:48:18  121.130.***.238  뢍  194613
    [5] 2014/01/16 19:35:31  223.62.***.89  취중코딩  502012
    [6] 2014/01/16 21:28:02  115.145.***.112  새까만샤프  179784
    [7] 2014/01/16 22:16:00  207.244.***.200  pysun  229497
    [8] 2014/01/17 01:51:01  1.214.***.133  행복한누리꾼  12785
    [9] 2014/01/17 16:08:18  203.226.***.31  Naaru  452055
    [10] 2014/01/17 19:28:23  118.33.***.213  큐어  14111
    푸르딩딩:추천수 3이상 댓글은 배경색이 바뀝니다.
    (단,비공감수가 추천수의 1/3 초과시 해당없음)

    죄송합니다. 댓글 작성은 회원만 가능합니다.


    현재 게시판의 베스트게시물입니다.  
    번호 제 목 이름 날짜 조회 추천
    822710
    대한민국이 IT산업을 위해 해준일 [23] enoeht 14/01/19 10:10 6790 129
    822686
    개발자노잼님 글 보고 쓰는 회사와 싸우는법.<야근수당받기> [7] 사시모토 14/01/19 08:59 3564 75
    822602
    [PHP팁] 위험 단어를 HTML 엔티티로 안전하게 변환하기 [19] ActiveXXX 14/01/19 02:02 2613 38
    821985
    [지진주의]CSS3 흔들림효과 테스트 [53] ActiveXXX 14/01/18 03:10 4251 71
    821837
    회사 신고해서 노동부 다녀온다고 했던 사람입니다. [32] 개발자노잼 14/01/17 21:53 6454 100
    오유에 소스코드올릴 때 [12] 게임할줄몰라 14/01/17 19:28 3020 31
    821558
    그만둔 회사 신고해서 야근수당 받으러 갑니다. [46] 개발자노잼 14/01/17 11:39 11587 228
    821052
    [자작, 재미없음 주의!] 본격 객체지향 코딩 안배우는 만화 [12] 빙티 14/01/16 17:03 2366 22
    821019
    stdio.h [15] 국견 14/01/16 16:07 3421 24
    820966
    가난한 Object 이야기 [10] 콜드이슈 14/01/16 14:27 4088 35
    820907
    팁] 프로그래머 취업할때 주의할점 정리 [15] 쁨쁨 14/01/16 12:05 6565 76
    820836
    손수 만든 랜덤값 함수 [11] 콜드이슈 14/01/16 09:11 4408 30
    820734
    객체지향 프로그래밍으로 부자되는법 [26] 콜드이슈 14/01/16 01:23 4788 62
    820616
    흔한 고대의 포인터 설명 [17] 콜드이슈 14/01/15 22:14 5863 37
    820420
    JSP)SNS 연동 소스 공개(Facebook 타임라인) 94년산수컷 14/01/15 16:48 10421 44
    820321
    알고리즘 트레이닝 사이트 [12] 평정컴퓨터 14/01/15 13:39 6220 68
    820312
    전 적정 수준의 질문글은 배척하지 말았으면 좋겠어요 ㅠㅠ [12] 알콜만세 14/01/15 13:20 2028 27
    820233
    과제 물어보는 사람에게 하고싶은 말 [10] 야매인생 14/01/15 10:54 3932 25
    820060
    비전공자들도 혼자서 단계 별 프로그래밍 학습이 가능한 사이트 [35] edonis 14/01/15 00:17 9939 162
    819869
    프로그래머가 노후에 치킨집 창업하는게 사실인가요? [56] 앵두 14/01/14 18:56 8015 100
    819862
    프로그래머 게시판에 가장 필요한 글이 없네요. [52] 서면몇센치게 14/01/14 18:44 5261 52
    819859
    프로그래머가 소매치기 당했을 때 하는 말은? [12] RedPain 14/01/14 18:43 6994 53
    819857
    웃기긴하다만 뭔가 많이 씁슬하네요 [10] 캣닙 14/01/14 18:38 4349 33
    819804
    이 곳은 개강과 동시에 숙제 게시판이 될 것입니다. [17] 사원대우임원 14/01/14 17:38 4553 33
    819795
    치킨 추천해주세요 [39] 덧글대통령 14/01/14 17:14 4692 55
    819787
    첫빠다 [64] 콘덴서 14/01/14 17:02 5182 111
    [◀이전10개] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [다음10개▶]
    단축키 운영진에게 바란다(삭제요청/제안) 운영게 게시판신청 자료창고 보류 개인정보취급방침 청소년보호정책 모바일홈