모바일 오유 바로가기
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도쿄올림픽
  • 게시판찾기
  • 오유인페이지
    개인차단 상태
    게임할줄몰라님의
    개인페이지입니다
    가입 : 11-04-29
    방문 : 2823회
    닉네임변경 이력
    회원차단
    회원차단해제
    게시물ID : programmer_471
    작성자 : 게임할줄몰라
    추천 : 10
    조회수 : 615
    IP : 180.70.***.127
    댓글 : 12개
    등록시간 : 2014/01/16 16:29:15
    http://todayhumor.com/?programmer_471 모바일
    오유에 소스코드올릴 때
    <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 초과시 해당없음)

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

    번호 제 목 이름 날짜 조회 추천
    207
    인파 홍보영상 [1] 게임할줄몰라 14/02/01 17:34 90 0
    206
    로터스의 둥지 타임어택 게임할줄몰라 14/02/01 16:27 135 0
    205
    [BMW] 48 여귀검사 사냥영상 [1] 게임할줄몰라 14/02/01 12:02 112 0
    204
    하드코어 40 달성 [4] 게임할줄몰라 14/01/29 21:52 116 0
    203
    네오플의 일처리방식 [8] 게임할줄몰라 14/01/28 10:11 289 0
    202
    리버쌍검 11회차 [2] 게임할줄몰라 14/01/27 22:00 113 0
    201
    저같은 경우는 나이트가 재밌네요 [3] 게임할줄몰라 14/01/27 11:12 92 0
    200
    하드코어 30찍었어요 [2] 게임할줄몰라 14/01/25 19:17 84 0
    199
    크리처 에러 보상 [5] 게임할줄몰라 14/01/24 17:15 250 0
    198
    설 연휴 이벤트 [4] 게임할줄몰라 14/01/24 17:12 262 0
    197
    사검류 [4] 게임할줄몰라 14/01/23 23:15 119 0
    196
    던파 패키지 랜덤질의 확장 [1] 게임할줄몰라 14/01/23 11:16 134 2
    195
    선남선녀, sd 끼고있는 유저 [6] 게임할줄몰라 14/01/23 10:34 251 0
    194
    1/23 업데이트 [4] 게임할줄몰라 14/01/22 16:54 358 0
    193
    [던조] 염제 진빌마 0분대 [7] 게임할줄몰라 14/01/22 12:53 220 2
    192
    1/21 퍼스트 서버 업데이트 [13] 게임할줄몰라 14/01/21 15:53 481 1
    191
    신이계는 인기캐릭이 정해져있어요. [4] 게임할줄몰라 14/01/21 12:42 235 0
    190
    추가되면 좋을거 같은 시스템 망상 [2] 게임할줄몰라 14/01/20 14:08 151 1
    189
    대검소마 & 데페 어느게 더 좋은가요 [5] 게임할줄몰라 14/01/20 11:42 90 0
    188
    이계 멋진 파티 목 [8] 게임할줄몰라 14/01/19 21:15 258 14
    187
    준 리볼버 두방 장전! [5] 게임할줄몰라 14/01/18 21:58 191 0
    186
    피로도 78물약 [1] 게임할줄몰라 14/01/18 00:04 150 0
    185
    나이트 어렵다고 하니까 기대되네요 [4] 게임할줄몰라 14/01/17 17:28 142 0
    184
    로그 엑셀 문의 희망찬 답변 [1] 게임할줄몰라 14/01/17 14:50 91 0
    183
    나이트와 그라시아 대검 의문점 [4] 게임할줄몰라 14/01/17 13:39 261 1
    182
    심판의 회오리 [2] 게임할줄몰라 14/01/17 11:46 128 1
    181
    로그 엑셀버그 언제 고쳐줄지... [7] 게임할줄몰라 14/01/17 10:22 142 1
    오유에 소스코드올릴 때 [2] 게임할줄몰라 14/01/16 16:29 46 2
    179
    1/16 세라템 변경 관련 [6] 게임할줄몰라 14/01/16 13:37 388 0
    178
    다들 에픽초돌에 대해 우호적이시네여 [7] 게임할줄몰라 14/01/16 09:40 218 4
    [◀이전10개] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [다음10개▶]
    단축키 운영진에게 바란다(삭제요청/제안) 운영게 게시판신청 자료창고 보류 개인정보취급방침 청소년보호정책 모바일홈